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

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with " 000676f8: 27bdffd8 addiu r29,r29,0xffd8 000676fc: afb1001c sw r17,0x001c(r29) 00067700: 00808821 addu r17,r4,r0 00067704: afb00018 sw r16,0x0018(r29) 00067708: 00a08021 a...")
 
m
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
+
  00067700: 00808821 addu r17,r4,r0                   LBA sector
 
  00067704: afb00018 sw r16,0x0018(r29)
 
  00067704: afb00018 sw r16,0x0018(r29)
 
  00067708: 00a08021 addu r16,r5,r0
 
  00067708: 00a08021 addu r16,r5,r0
 
  0006770c: afbf0020 sw r31,0x0020(r29)
 
  0006770c: afbf0020 sw r31,0x0020(r29)
  00067710: 0c01cd23 jal 0x0007348c
+
  00067710: 0c01cd23 jal 0x0007348c                   [[OPEN.BIN DecDCTReset]]
 
  00067714: 00002021 addu r4,r0,r0
 
  00067714: 00002021 addu r4,r0,r0
  00067718: 0c01cdbe jal 0x000736f8
+
  00067718: 0c01cdbe jal 0x000736f8                   [[OPEN.BIN DecDCToutCallback]]
 
  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
  00067728: 0c007a25 jal 0x0001e894
+
  00067728: 0c007a25 jal 0x0001e894                   [[StSetRing]]
 
  0006772c: 34050030 ori r5,r0,0x0030
 
  0006772c: 34050030 ori r5,r0,0x0030
 
  00067730: 34040001 ori r4,r0,0x0001
 
  00067730: 34040001 ori r4,r0,0x0001
Line 17: Line 17:
 
  00067738: 2406ffff addiu r6,r0,0xffff
 
  00067738: 2406ffff addiu r6,r0,0xffff
 
  0006773c: 00003821 addu r7,r0,r0
 
  0006773c: 00003821 addu r7,r0,r0
  00067740: 0c008421 jal 0x00021084
+
  00067740: 0c008421 jal 0x00021084                   [[StSetStream]]
 
  00067744: afa00010 sw r0,0x0010(r29)
 
  00067744: afa00010 sw r0,0x0010(r29)
 
  00067748: 3c108005 lui r16,0x8005
 
  00067748: 3c108005 lui r16,0x8005
  0006774c: 2610eaf4 addiu r16,r16,0xeaf4
+
  0006774c: 2610eaf4 addiu r16,r16,0xeaf4             file header address
 
  00067750: 02002021 addu r4,r16,r0
 
  00067750: 02002021 addu r4,r16,r0
  00067754: 02202821 addu r5,r17,r0
+
  00067754: 02202821 addu r5,r17,r0                   LBA sector
  00067758: 34060001 ori r6,r0,0x0001
+
  00067758: 34060001 ori r6,r0,0x0001                 1 sector
  0006775c: 0c0046f4 jal 0x00011bd0
+
  0006775c: 0c0046f4 jal 0x00011bd0                   [[Load Data From Disc (0x11bd0)]]
  00067760: 00003821 addu r7,r0,r0
+
  00067760: 00003821 addu r7,r0,r0                     no destination pointer?
 
  00067764: 3c028005 lui r2,0x8005
 
  00067764: 3c028005 lui r2,0x8005
 
  00067768: 8c42eaf8 lw r2,-0x1508(r2)
 
  00067768: 8c42eaf8 lw r2,-0x1508(r2)
Line 31: Line 31:
 
  00067770: 1040000a beq r2,r0,0x0006779c
 
  00067770: 1040000a beq r2,r0,0x0006779c
 
  00067774: 34040002 ori r4,r0,0x0002
 
  00067774: 34040002 ori r4,r0,0x0002
  00067778: 0c00478e jal 0x00011e38
+
  00067778: 0c00478e jal 0x00011e38                   [[Open File to RAM Centre]]
 
  0006777c: 02002021 addu r4,r16,r0
 
  0006777c: 02002021 addu r4,r16,r0
  00067780: 0c0076ea jal 0x0001dba8
+
  00067780: 0c0076ea jal 0x0001dba8                   [[VSync call]]
 
  00067784: 00002021 addu r4,r0,r0
 
  00067784: 00002021 addu r4,r0,r0
 
  00067788: 3c028005 lui r2,0x8005
 
  00067788: 3c028005 lui r2,0x8005
 
  0006778c: 8c42eaf8 lw r2,-0x1508(r2)
 
  0006778c: 8c42eaf8 lw r2,-0x1508(r2)
 
  00067790: 00000000 nop
 
  00067790: 00000000 nop
  00067794: 1440fff8 bne r2,r0,0x00067778
+
  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
 
  0006779c: 3c058005 lui r5,0x8005
 
  0006779c: 3c058005 lui r5,0x8005
 
  000677a0: 24a5eb10 addiu r5,r5,0xeb10
 
  000677a0: 24a5eb10 addiu r5,r5,0xeb10
  000677a4: 0c007ae2 jal 0x0001eb88
+
  000677a4: 0c007ae2 jal 0x0001eb88                   [[CdControl]]
 
  000677a8: 00003021 addu r6,r0,r0
 
  000677a8: 00003021 addu r6,r0,r0
 
  000677ac: 1040fffb beq r2,r0,0x0006779c
 
  000677ac: 1040fffb beq r2,r0,0x0006779c

Revision as of 23:46, 11 December 2024

000676f8: 27bdffd8 addiu r29,r29,0xffd8
000676fc: afb1001c sw r17,0x001c(r29)
00067700: 00808821 addu r17,r4,r0                    LBA sector
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
00067728: 0c007a25 jal 0x0001e894                    StSetRing
0006772c: 34050030 ori r5,r0,0x0030
00067730: 34040001 ori r4,r0,0x0001
00067734: 00002821 addu r5,r0,r0
00067738: 2406ffff addiu r6,r0,0xffff
0006773c: 00003821 addu r7,r0,r0
00067740: 0c008421 jal 0x00021084                    StSetStream
00067744: afa00010 sw r0,0x0010(r29)
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
0006779c: 3c058005 lui r5,0x8005
000677a0: 24a5eb10 addiu r5,r5,0xeb10
000677a4: 0c007ae2 jal 0x0001eb88                    CdControl
000677a8: 00003021 addu r6,r0,r0
000677ac: 1040fffb beq r2,r0,0x0006779c
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