Difference between revisions of "Open Zodiac.BIN and move to Frame buffer"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with "<font face='Courier New'> 00042508: 27bdffe0 addiu r29,r29,0xffe0 0004250c: afbf001c sw r31,0x001c(r29) 00042510: afb00018 sw r16,0x0018(r29) 00042514: 3c058004 lui r5,0...")
 
m
 
(4 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
  00042510: afb00018 sw r16,0x0018(r29)
 
  00042510: afb00018 sw r16,0x0018(r29)
 
  00042514: 3c058004 lui r5,0x8004
 
  00042514: 3c058004 lui r5,0x8004
  00042518: 24a5092c addiu r5,r5,0x092c
+
  00042518: 24a5092c addiu r5,r5,0x092c         #RECT destination data for zodiac.bin
 
  0004251c: 88a20003 lwl r2,0x0003(r5)
 
  0004251c: 88a20003 lwl r2,0x0003(r5)
 
  00042520: 98a20000 lwr r2,0x0000(r5)
 
  00042520: 98a20000 lwr r2,0x0000(r5)
Line 14: Line 14:
 
  00042534: aba30017 swl r3,0x0017(r29)
 
  00042534: aba30017 swl r3,0x0017(r29)
 
  00042538: bba30014 swr r3,0x0014(r29)
 
  00042538: bba30014 swr r3,0x0014(r29)
  0004253c: 3404ec61 ori r4,r0,0xec61
+
  0004253c: 3404ec61 ori r4,r0,0xec61           # zodiac.bin LBA
  00042540: 0c011264 jal 0x00044990
+
  00042540: 0c011264 jal 0x00044990             [[Get BIN as TIM]]
  00042544: 3c050001 lui r5,0x0001
+
  00042544: 3c050001 lui r5,0x0001               # Zodiac.bin filesize
 
  00042548: 27a40010 addiu r4,r29,0x0010
 
  00042548: 27a40010 addiu r4,r29,0x0010
 
  0004254c: 00408021 addu r16,r2,r0
 
  0004254c: 00408021 addu r16,r2,r0
  00042550: 0c00923f jal 0x000248fc
+
  00042550: 0c00923f jal 0x000248fc             [[SYS LoadImage]] put zodiac.bin in frame buffer
 
  00042554: 02002821 addu r5,r16,r0
 
  00042554: 02002821 addu r5,r16,r0
  00042558: 0c0091b5 jal 0x000246d4
+
  00042558: 0c0091b5 jal 0x000246d4             [[SYS DrawSync]] wait for all drawing to finish
 
  0004255c: 00002021 addu r4,r0,r0
 
  0004255c: 00002021 addu r4,r0,r0
  00042560: 0c011180 jal 0x00044600
+
  00042560: 0c011180 jal 0x00044600             [[C52 Free]] free memory again
 
  00042564: 02002021 addu r4,r16,r0
 
  00042564: 02002021 addu r4,r16,r0
  00042568: 0c011455 jal 0x00045154
+
  00042568: 0c011455 jal 0x00045154             [[Open Frame.BIN and move to frame buffer]]
 
  0004256c: 00000000 nop
 
  0004256c: 00000000 nop
 
  00042570: 8fbf001c lw r31,0x001c(r29)
 
  00042570: 8fbf001c lw r31,0x001c(r29)

Latest revision as of 06:49, 11 June 2024

00042508: 27bdffe0 addiu r29,r29,0xffe0
0004250c: afbf001c sw r31,0x001c(r29)
00042510: afb00018 sw r16,0x0018(r29)
00042514: 3c058004 lui r5,0x8004
00042518: 24a5092c addiu r5,r5,0x092c          #RECT destination data for zodiac.bin
0004251c: 88a20003 lwl r2,0x0003(r5)
00042520: 98a20000 lwr r2,0x0000(r5)
00042524: 88a30007 lwl r3,0x0007(r5)
00042528: 98a30004 lwr r3,0x0004(r5)
0004252c: aba20013 swl r2,0x0013(r29)
00042530: bba20010 swr r2,0x0010(r29)
00042534: aba30017 swl r3,0x0017(r29)
00042538: bba30014 swr r3,0x0014(r29)
0004253c: 3404ec61 ori r4,r0,0xec61            # zodiac.bin LBA
00042540: 0c011264 jal 0x00044990              Get BIN as TIM
00042544: 3c050001 lui r5,0x0001               # Zodiac.bin filesize
00042548: 27a40010 addiu r4,r29,0x0010
0004254c: 00408021 addu r16,r2,r0
00042550: 0c00923f jal 0x000248fc              SYS LoadImage put zodiac.bin in frame buffer
00042554: 02002821 addu r5,r16,r0
00042558: 0c0091b5 jal 0x000246d4              SYS DrawSync wait for all drawing to finish
0004255c: 00002021 addu r4,r0,r0
00042560: 0c011180 jal 0x00044600              C52 Free free memory again
00042564: 02002021 addu r4,r16,r0
00042568: 0c011455 jal 0x00045154              Open Frame.BIN and move to frame buffer
0004256c: 00000000 nop
00042570: 8fbf001c lw r31,0x001c(r29)
00042574: 8fb00018 lw r16,0x0018(r29)
00042578: 27bd0020 addiu r29,r29,0x0020
0004257c: 03e00008 jr r31
00042580: 00000000 nop