Difference between revisions of "OPEN.BIN 000676f8 - 000677c8"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
  000676f8: 27bdffd8 addiu r29,r29,0xffd8
 
  000676f8: 27bdffd8 addiu r29,r29,0xffd8
 
  000676fc: afb1001c sw r17,0x001c(r29)
 
  000676fc: afb1001c sw r17,0x001c(r29)
  00067700: 00808821 addu r17,r4,r0                    LBA sector
+
  00067700: 00808821 addu r17,r4,r0                    LBA sector of movie to play
 
  00067704: afb00018 sw r16,0x0018(r29)
 
  00067704: afb00018 sw r16,0x0018(r29)
 
  00067708: 00a08021 addu r16,r5,r0
 
  00067708: 00a08021 addu r16,r5,r0
Line 10: Line 10:
 
  0006771c: 02002021 addu r4,r16,r0
 
  0006771c: 02002021 addu r4,r16,r0
 
  00067720: 3c048011 lui r4,0x8011
 
  00067720: 3c048011 lui r4,0x8011
  00067724: 24845a00 addiu r4,r4,0x5a00
+
  00067724: 24845a00 addiu r4,r4,0x5a00               buffer at 80115a00?
 
  00067728: 0c007a25 jal 0x0001e894                    [[StSetRing]]
 
  00067728: 0c007a25 jal 0x0001e894                    [[StSetRing]]
  0006772c: 34050030 ori r5,r0,0x0030
+
  0006772c: 34050030 ori r5,r0,0x0030                 ring buffer size 0x30
  00067730: 34040001 ori r4,r0,0x0001
+
  00067730: 34040001 ori r4,r0,0x0001                 24 bit colour mode
  00067734: 00002821 addu r5,r0,r0
+
  00067734: 00002821 addu r5,r0,r0                     start frame 0
  00067738: 2406ffff addiu r6,r0,0xffff
+
  00067738: 2406ffff addiu r6,r0,0xffff               stream to end of disc
  0006773c: 00003821 addu r7,r0,r0
+
  0006773c: 00003821 addu r7,r0,r0                     no callback on start streaming
 
  00067740: 0c008421 jal 0x00021084                    [[StSetStream]]
 
  00067740: 0c008421 jal 0x00021084                    [[StSetStream]]
  00067744: afa00010 sw r0,0x0010(r29)
+
  00067744: afa00010 sw r0,0x0010(r29)                 no callback on end streaming
 
  00067748: 3c108005 lui r16,0x8005
 
  00067748: 3c108005 lui r16,0x8005
 
  0006774c: 2610eaf4 addiu r16,r16,0xeaf4              file header address
 
  0006774c: 2610eaf4 addiu r16,r16,0xeaf4              file header address
Line 39: Line 39:
 
  00067790: 00000000 nop
 
  00067790: 00000000 nop
 
  00067794: 1440fff8 bne r2,r0,0x00067778              loop if file still yet to open
 
  00067794: 1440fff8 bne r2,r0,0x00067778              loop if file still yet to open
  00067798: 34040002 ori r4,r0,0x0002
+
  00067798: 34040002 ori r4,r0,0x0002                 CdlSetloc
 
  0006779c: 3c058005 lui r5,0x8005
 
  0006779c: 3c058005 lui r5,0x8005
  000677a0: 24a5eb10 addiu r5,r5,0xeb10
+
  000677a0: 24a5eb10 addiu r5,r5,0xeb10               pointer to file header CDlLoc
 
  000677a4: 0c007ae2 jal 0x0001eb88                    [[CdControl]]
 
  000677a4: 0c007ae2 jal 0x0001eb88                    [[CdControl]]
  000677a8: 00003021 addu r6,r0,r0
+
  000677a8: 00003021 addu r6,r0,r0                     value buffer = <null>
  000677ac: 1040fffb beq r2,r0,0x0006779c
+
  000677ac: 1040fffb beq r2,r0,0x0006779c             loop if command failed
 
  000677b0: 34040002 ori r4,r0,0x0002
 
  000677b0: 34040002 ori r4,r0,0x0002
 
  000677b4: 8fbf0020 lw r31,0x0020(r29)
 
  000677b4: 8fbf0020 lw r31,0x0020(r29)

Latest revision as of 00:10, 12 December 2024

000676f8: 27bdffd8 addiu r29,r29,0xffd8
000676fc: afb1001c sw r17,0x001c(r29)
00067700: 00808821 addu r17,r4,r0                    LBA sector of movie to play
00067704: afb00018 sw r16,0x0018(r29)
00067708: 00a08021 addu r16,r5,r0
0006770c: afbf0020 sw r31,0x0020(r29)
00067710: 0c01cd23 jal 0x0007348c                    OPEN.BIN DecDCTReset
00067714: 00002021 addu r4,r0,r0
00067718: 0c01cdbe jal 0x000736f8                    OPEN.BIN DecDCToutCallback
0006771c: 02002021 addu r4,r16,r0
00067720: 3c048011 lui r4,0x8011
00067724: 24845a00 addiu r4,r4,0x5a00                buffer at 80115a00?
00067728: 0c007a25 jal 0x0001e894                    StSetRing
0006772c: 34050030 ori r5,r0,0x0030                  ring buffer size 0x30
00067730: 34040001 ori r4,r0,0x0001                  24 bit colour mode
00067734: 00002821 addu r5,r0,r0                     start frame 0
00067738: 2406ffff addiu r6,r0,0xffff                stream to end of disc
0006773c: 00003821 addu r7,r0,r0                     no callback on start streaming
00067740: 0c008421 jal 0x00021084                    StSetStream
00067744: afa00010 sw r0,0x0010(r29)                 no callback on end streaming
00067748: 3c108005 lui r16,0x8005
0006774c: 2610eaf4 addiu r16,r16,0xeaf4              file header address
00067750: 02002021 addu r4,r16,r0
00067754: 02202821 addu r5,r17,r0                    LBA sector
00067758: 34060001 ori r6,r0,0x0001                  1 sector
0006775c: 0c0046f4 jal 0x00011bd0                    Load Data From Disc (0x11bd0)
00067760: 00003821 addu r7,r0,r0                     no destination pointer?
00067764: 3c028005 lui r2,0x8005
00067768: 8c42eaf8 lw r2,-0x1508(r2)
0006776c: 00000000 nop
00067770: 1040000a beq r2,r0,0x0006779c
00067774: 34040002 ori r4,r0,0x0002
00067778: 0c00478e jal 0x00011e38                    Open File to RAM Centre
0006777c: 02002021 addu r4,r16,r0
00067780: 0c0076ea jal 0x0001dba8                    VSync call
00067784: 00002021 addu r4,r0,r0
00067788: 3c028005 lui r2,0x8005
0006778c: 8c42eaf8 lw r2,-0x1508(r2)
00067790: 00000000 nop
00067794: 1440fff8 bne r2,r0,0x00067778              loop if file still yet to open
00067798: 34040002 ori r4,r0,0x0002                  CdlSetloc
0006779c: 3c058005 lui r5,0x8005
000677a0: 24a5eb10 addiu r5,r5,0xeb10                pointer to file header CDlLoc
000677a4: 0c007ae2 jal 0x0001eb88                    CdControl
000677a8: 00003021 addu r6,r0,r0                     value buffer = <null>
000677ac: 1040fffb beq r2,r0,0x0006779c              loop if command failed
000677b0: 34040002 ori r4,r0,0x0002
000677b4: 8fbf0020 lw r31,0x0020(r29)
000677b8: 8fb1001c lw r17,0x001c(r29)
000677bc: 8fb00018 lw r16,0x0018(r29)
000677c0: 27bd0028 addiu r29,r29,0x0028
000677c4: 03e00008 jr r31
000677c8: 00000000 nop