Difference between revisions of "Initialise Game Environment"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with "<font face='Courier New'> 00042584: 27bdffe0 addiu r29,r29,0xffe0 00042588: afbf0018 sw r31,0x0018(r29) 0004258c: 0c01119c jal 0x00044670 00042590: 00000000 nop 0004259...")
 
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
  00042584: 27bdffe0 addiu r29,r29,0xffe0
 
  00042584: 27bdffe0 addiu r29,r29,0xffe0
 
  00042588: afbf0018 sw r31,0x0018(r29)
 
  00042588: afbf0018 sw r31,0x0018(r29)
  0004258c: 0c01119c jal 0x00044670
+
  0004258c: 0c01119c jal 0x00044670               [[00044670 - 00044690]]
 
  00042590: 00000000 nop
 
  00042590: 00000000 nop
  00042594: 0c007763 jal 0x0001dd8c
+
  00042594: 0c007763 jal 0x0001dd8c               [[ResetCallback]]
 
  00042598: 00000000 nop
 
  00042598: 00000000 nop
 
  0004259c: 3c048004 lui r4,0x8004
 
  0004259c: 3c048004 lui r4,0x8004
Line 17: Line 17:
 
  000425bc: 3c018004 lui r1,0x8004
 
  000425bc: 3c018004 lui r1,0x8004
 
  000425c0: ac2059b8 sw r0,0x59b8(r1)
 
  000425c0: ac2059b8 sw r0,0x59b8(r1)
  000425c4: 0c007787 jal 0x0001de1c
+
  000425c4: 0c007787 jal 0x0001de1c               [[Vsync Callback]] --> [[000434dc - 000435a8]]
 
  000425c8: 00000000 nop
 
  000425c8: 00000000 nop
 
  000425cc: 3c048004 lui r4,0x8004
 
  000425cc: 3c048004 lui r4,0x8004
 
  000425d0: 248435ac addiu r4,r4,0x35ac
 
  000425d0: 248435ac addiu r4,r4,0x35ac
  000425d4: 0c009177 jal 0x000245dc
+
  000425d4: 0c009177 jal 0x000245dc               [[SYS DrawSyncCallback]] --> [[000435ac - 000435b0]] jr r31
 
  000425d8: 00000000 nop
 
  000425d8: 00000000 nop
 
  000425dc: 3c048004 lui r4,0x8004
 
  000425dc: 3c048004 lui r4,0x8004
 
  000425e0: 248435b4 addiu r4,r4,0x35b4
 
  000425e0: 248435b4 addiu r4,r4,0x35b4
  000425e4: 0c007adc jal 0x0001eb70
+
  000425e4: 0c007adc jal 0x0001eb70               [[CdReadyCallback]] --> [[000435b4 - 000435b8]] jr r31
 
  000425e8: 00000000 nop
 
  000425e8: 00000000 nop
 
  000425ec: 3c048004 lui r4,0x8004
 
  000425ec: 3c048004 lui r4,0x8004
 
  000425f0: 248435bc addiu r4,r4,0x35bc
 
  000425f0: 248435bc addiu r4,r4,0x35bc
  000425f4: 0c008384 jal 0x00020e10
+
  000425f4: 0c008384 jal 0x00020e10               [[CdReadCallback]] --> [[000435bc - 000435c0]] jr r31
 
  000425f8: 00000000 nop
 
  000425f8: 00000000 nop
  000425fc: 0c00908e jal 0x00024238
+
  000425fc: 0c00908e jal 0x00024238               [[SYS ResetGraph]]
  00042600: 00002021 addu r4,r0,r0
+
  00042600: 00002021 addu r4,r0,r0                 complete reset
  00042604: 0c009129 jal 0x000244a4
+
  00042604: 0c009129 jal 0x000244a4               [[SYS SetGraphDebug]]
  00042608: 00002021 addu r4,r0,r0
+
  00042608: 00002021 addu r4,r0,r0                 no debug
  0004260c: 0c0076c2 jal 0x0001db08
+
  0004260c: 0c0076c2 jal 0x0001db08               [[0001dad0 - 0001db54]] pad init?
 
  00042610: 00002021 addu r4,r0,r0
 
  00042610: 00002021 addu r4,r0,r0
  00042614: 0c0061b1 jal 0x000186c4
+
  00042614: 0c0061b1 jal 0x000186c4               [[000186c4 - 000186e0]]
 
  00042618: 00000000 nop
 
  00042618: 00000000 nop
  0004261c: 0c010930 jal 0x000424c0
+
  0004261c: 0c010930 jal 0x000424c0               [[Reset CDROM, CPU RAM]]
 
  00042620: 00000000 nop
 
  00042620: 00000000 nop
 
  00042624: 34040100 ori r4,r0,0x0100
 
  00042624: 34040100 ori r4,r0,0x0100
Line 46: Line 46:
 
  00042630: 00003821 addu r7,r0,r0
 
  00042630: 00003821 addu r7,r0,r0
 
  00042634: afa00010 sw r0,0x0010(r29)
 
  00042634: afa00010 sw r0,0x0010(r29)
  00042638: 0c0108a1 jal 0x00042284
+
  00042638: 0c0108a1 jal 0x00042284               [[00042284 - 000424bc]]
 
  0004263c: afa00014 sw r0,0x0014(r29)
 
  0004263c: afa00014 sw r0,0x0014(r29)
  00042640: 0c0107a6 jal 0x00041e98
+
  00042640: 0c0107a6 jal 0x00041e98               [[00041e98 - 00042280]]
 
  00042644: 00000000 nop
 
  00042644: 00000000 nop
  00042648: 0c010624 jal 0x00041890
+
  00042648: 0c010624 jal 0x00041890               [[00041890 - 00041b18]]
 
  0004264c: 00000000 nop
 
  0004264c: 00000000 nop
  00042650: 0c0115c8 jal 0x00045720
+
  00042650: 0c0115c8 jal 0x00045720               [[Initialise memory card events]] takes up 8 events
 
  00042654: 00000000 nop
 
  00042654: 00000000 nop
  00042658: 0c011055 jal 0x00044154
+
  00042658: 0c011055 jal 0x00044154               [[Open Permanent sound files]]
 
  0004265c: 00000000 nop
 
  0004265c: 00000000 nop
  00042660: 0c010942 jal 0x00042508
+
  00042660: 0c010942 jal 0x00042508               [[Open Zodiac.BIN and move to Frame buffer]] + frame.bin
 
  00042664: 00000000 nop
 
  00042664: 00000000 nop
  00042668: 0c0088c7 jal 0x0002231c
+
  00042668: 0c0088c7 jal 0x0002231c               [[srand]] 01
 
  0004266c: 34040001 ori r4,r0,0x0001
 
  0004266c: 34040001 ori r4,r0,0x0001
  00042670: 0c0106c7 jal 0x00041b1c
+
  00042670: 0c0106c7 jal 0x00041b1c               [[00041b1c - 00041d7c]]
 
  00042674: 00000000 nop
 
  00042674: 00000000 nop
 
  00042678: 3c018005 lui r1,0x8005
 
  00042678: 3c018005 lui r1,0x8005

Latest revision as of 06:56, 15 June 2024

00042584: 27bdffe0 addiu r29,r29,0xffe0
00042588: afbf0018 sw r31,0x0018(r29)
0004258c: 0c01119c jal 0x00044670                00044670 - 00044690
00042590: 00000000 nop
00042594: 0c007763 jal 0x0001dd8c                ResetCallback
00042598: 00000000 nop
0004259c: 3c048004 lui r4,0x8004
000425a0: 248434dc addiu r4,r4,0x34dc
000425a4: 3c018004 lui r1,0x8004
000425a8: ac2059c4 sw r0,0x59c4(r1)
000425ac: 3c018004 lui r1,0x8004
000425b0: ac2059c0 sw r0,0x59c0(r1)
000425b4: 3c018004 lui r1,0x8004
000425b8: ac2059bc sw r0,0x59bc(r1)
000425bc: 3c018004 lui r1,0x8004
000425c0: ac2059b8 sw r0,0x59b8(r1)
000425c4: 0c007787 jal 0x0001de1c                Vsync Callback --> 000434dc - 000435a8
000425c8: 00000000 nop
000425cc: 3c048004 lui r4,0x8004
000425d0: 248435ac addiu r4,r4,0x35ac
000425d4: 0c009177 jal 0x000245dc                SYS DrawSyncCallback --> 000435ac - 000435b0 jr r31
000425d8: 00000000 nop
000425dc: 3c048004 lui r4,0x8004
000425e0: 248435b4 addiu r4,r4,0x35b4
000425e4: 0c007adc jal 0x0001eb70                CdReadyCallback --> 000435b4 - 000435b8 jr r31
000425e8: 00000000 nop
000425ec: 3c048004 lui r4,0x8004
000425f0: 248435bc addiu r4,r4,0x35bc
000425f4: 0c008384 jal 0x00020e10                CdReadCallback --> 000435bc - 000435c0 jr r31
000425f8: 00000000 nop
000425fc: 0c00908e jal 0x00024238                SYS ResetGraph
00042600: 00002021 addu r4,r0,r0                 complete reset
00042604: 0c009129 jal 0x000244a4                SYS SetGraphDebug
00042608: 00002021 addu r4,r0,r0                 no debug
0004260c: 0c0076c2 jal 0x0001db08                0001dad0 - 0001db54 pad init?
00042610: 00002021 addu r4,r0,r0
00042614: 0c0061b1 jal 0x000186c4                000186c4 - 000186e0
00042618: 00000000 nop
0004261c: 0c010930 jal 0x000424c0                Reset CDROM, CPU RAM
00042620: 00000000 nop
00042624: 34040100 ori r4,r0,0x0100
00042628: 340500f0 ori r5,r0,0x00f0
0004262c: 34060200 ori r6,r0,0x0200
00042630: 00003821 addu r7,r0,r0
00042634: afa00010 sw r0,0x0010(r29)
00042638: 0c0108a1 jal 0x00042284                00042284 - 000424bc
0004263c: afa00014 sw r0,0x0014(r29)
00042640: 0c0107a6 jal 0x00041e98                00041e98 - 00042280
00042644: 00000000 nop
00042648: 0c010624 jal 0x00041890                00041890 - 00041b18
0004264c: 00000000 nop
00042650: 0c0115c8 jal 0x00045720                Initialise memory card events takes up 8 events
00042654: 00000000 nop
00042658: 0c011055 jal 0x00044154                Open Permanent sound files
0004265c: 00000000 nop
00042660: 0c010942 jal 0x00042508                Open Zodiac.BIN and move to Frame buffer + frame.bin
00042664: 00000000 nop
00042668: 0c0088c7 jal 0x0002231c                srand 01
0004266c: 34040001 ori r4,r0,0x0001
00042670: 0c0106c7 jal 0x00041b1c                00041b1c - 00041d7c
00042674: 00000000 nop
00042678: 3c018005 lui r1,0x8005
0004267c: ac20d9b4 sw r0,-0x264c(r1)
00042680: 8fbf0018 lw r31,0x0018(r29)
00042684: 27bd0020 addiu r29,r29,0x0020
00042688: 03e00008 jr r31
0004268c: 00000000 nop