Difference between revisions of "Build & Draw SCEAP.DAT"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with "<font face='Courier New'> 00041e98: 27bdff70 addiu r29,r29,0xff70 00041e9c: afbf008c sw r31,0x008c(r29) 00041ea0: afb40088 sw r20,0x0088(r29) 00041ea4: afb30084 sw r19,0...")
 
m
 
(5 intermediate revisions by the same user not shown)
Line 23: Line 23:
 
  00041ee8: 00003821 addu r7,r0,r0
 
  00041ee8: 00003821 addu r7,r0,r0
 
  00041eec: afa00010 sw r0,0x0010(r29)
 
  00041eec: afa00010 sw r0,0x0010(r29)
  00041ef0: 0c010566 jal 0x00041598
+
  00041ef0: 0c010566 jal 0x00041598               [[Initialise Drawing & Display Environments]]
 
  00041ef4: afa00014 sw r0,0x0014(r29)
 
  00041ef4: afa00014 sw r0,0x0014(r29)
  00041ef8: 340400c6 ori r4,r0,0x00c6
+
  00041ef8: 340400c6 ori r4,r0,0x00c6             LBA 0xc6 SCEAP.DAT
  00041efc: 34055000 ori r5,r0,0x5000
+
  00041efc: 34055000 ori r5,r0,0x5000              filesize 0x5000
 
  00041f00: 3c068001 lui r6,0x8001
 
  00041f00: 3c068001 lui r6,0x8001
  00041f04: 8cc60010 lw r6,0x0010(r6)
+
  00041f04: 8cc60010 lw r6,0x0010(r6)             open into
  00041f08: 0c011255 jal 0x00044954
+
  00041f08: 0c011255 jal 0x00044954               [[Get DAT as WD]]
 
  00041f0c: 00009021 addu r18,r0,r0
 
  00041f0c: 00009021 addu r18,r0,r0
  00041f10: 0c008f42 jal 0x00023d08
+
  00041f10: 0c008f42 jal 0x00023d08               [[P16 SetPolyF4]]
 
  00041f14: 27a40018 addiu r4,r29,0x0018
 
  00041f14: 27a40018 addiu r4,r29,0x0018
 
  00041f18: 27a40018 addiu r4,r29,0x0018
 
  00041f18: 27a40018 addiu r4,r29,0x0018
Line 47: Line 47:
 
  00041f48: a7a2002a sh r2,0x002a(r29)
 
  00041f48: a7a2002a sh r2,0x002a(r29)
 
  00041f4c: a7b1002c sh r17,0x002c(r29)
 
  00041f4c: a7b1002c sh r17,0x002c(r29)
  00041f50: 0c008f1a jal 0x00023c68
+
  00041f50: 0c008f1a jal 0x00023c68               [[P10 SetSemiTrans]]
 
  00041f54: a7a2002e sh r2,0x002e(r29)
 
  00041f54: a7a2002e sh r2,0x002e(r29)
 
  00041f58: 8fa20018 lw r2,0x0018(r29)
 
  00041f58: 8fa20018 lw r2,0x0018(r29)
Line 66: Line 66:
 
  00041f94: 34070040 ori r7,r0,0x0040
 
  00041f94: 34070040 ori r7,r0,0x0040
 
  00041f98: 27b00070 addiu r16,r29,0x0070
 
  00041f98: 27b00070 addiu r16,r29,0x0070
  00041f9c: 0c009533 jal 0x000254cc
+
  00041f9c: 0c009533 jal 0x000254cc               [[P41 SetDrawMode]]
 
  00041fa0: afb00010 sw r16,0x0010(r29)
 
  00041fa0: afb00010 sw r16,0x0010(r29)
 
  00041fa4: 8fa20048 lw r2,0x0048(r29)
 
  00041fa4: 8fa20048 lw r2,0x0048(r29)
Line 82: Line 82:
 
  00041fd4: a7a00072 sh r0,0x0072(r29)
 
  00041fd4: a7a00072 sh r0,0x0072(r29)
 
  00041fd8: a7b10074 sh r17,0x0074(r29)
 
  00041fd8: a7b10074 sh r17,0x0074(r29)
  00041fdc: 0c00921a jal 0x00024868
+
  00041fdc: 0c00921a jal 0x00024868               [[SYS ClearImage]]
 
  00041fe0: a7a20076 sh r2,0x0076(r29)
 
  00041fe0: a7a20076 sh r2,0x0076(r29)
  00041fe4: 0c0091b5 jal 0x000246d4
+
  00041fe4: 0c0091b5 jal 0x000246d4               [[SYS DrawSync]]
 
  00041fe8: 00002021 addu r4,r0,r0
 
  00041fe8: 00002021 addu r4,r0,r0
  00041fec: 0c00918e jal 0x00024638
+
  00041fec: 0c00918e jal 0x00024638               [[SYS SetDispMask]]
  00041ff0: 34040001 ori r4,r0,0x0001
+
  00041ff0: 34040001 ori r4,r0,0x0001             mask = 1
  00041ff4: 0c0076ea jal 0x0001dba8
+
  00041ff4: 0c0076ea jal 0x0001dba8               [[VSync call]]
 
  00041ff8: 00002021 addu r4,r0,r0
 
  00041ff8: 00002021 addu r4,r0,r0
 
  00041ffc: 26520001 addiu r18,r18,0x0001
 
  00041ffc: 26520001 addiu r18,r18,0x0001
Line 102: Line 102:
 
  00042024: 000210c0 sll r2,r2,0x03
 
  00042024: 000210c0 sll r2,r2,0x03
 
  00042028: 02828021 addu r16,r20,r2
 
  00042028: 02828021 addu r16,r20,r2
  0004202c: 0c0092a2 jal 0x00024a88
+
  0004202c: 0c0092a2 jal 0x00024a88               [[SYS ClearOtag]]
 
  00042030: 02002021 addu r4,r16,r0
 
  00042030: 02002021 addu r4,r16,r0
 
  00042034: 3c038004 lui r3,0x8004
 
  00042034: 3c038004 lui r3,0x8004
Line 134: Line 134:
 
  000420a4: 00a22821 addu r5,r5,r2
 
  000420a4: 00a22821 addu r5,r5,r2
 
  000420a8: 000528c0 sll r5,r5,0x03
 
  000420a8: 000528c0 sll r5,r5,0x03
  000420ac: 0c008eed jal 0x00023bb4
+
  000420ac: 0c008eed jal 0x00023bb4               [[P06 AddPrim]]
 
  000420b0: 02452821 addu r5,r18,r5
 
  000420b0: 02452821 addu r5,r18,r5
 
  000420b4: 3c028004 lui r2,0x8004
 
  000420b4: 3c028004 lui r2,0x8004
Line 142: Line 142:
 
  000420c4: 00a22821 addu r5,r5,r2
 
  000420c4: 00a22821 addu r5,r5,r2
 
  000420c8: 00052880 sll r5,r5,0x02
 
  000420c8: 00052880 sll r5,r5,0x02
  000420cc: 0c008eed jal 0x00023bb4
+
  000420cc: 0c008eed jal 0x00023bb4               [[P06 AddPrim]]
 
  000420d0: 02652821 addu r5,r19,r5
 
  000420d0: 02652821 addu r5,r19,r5
 
  000420d4: 3c058001 lui r5,0x8001
 
  000420d4: 3c058001 lui r5,0x8001
 
  000420d8: 8ca50010 lw r5,0x0010(r5)
 
  000420d8: 8ca50010 lw r5,0x0010(r5)
  000420dc: 0c010760 jal 0x00041d80
+
  000420dc: 0c010760 jal 0x00041d80               [[00041d80 - 00041e94]]
 
  000420e0: 02002021 addu r4,r16,r0
 
  000420e0: 02002021 addu r4,r16,r0
 
  000420e4: 2622fff8 addiu r2,r17,0xfff8
 
  000420e4: 2622fff8 addiu r2,r17,0xfff8
Line 154: Line 154:
 
  000420f4: 00000000 nop
 
  000420f4: 00000000 nop
 
  000420f8: 00009021 addu r18,r0,r0
 
  000420f8: 00009021 addu r18,r0,r0
  000420fc: 0c0076ea jal 0x0001dba8
+
  000420fc: 0c0076ea jal 0x0001dba8               [[Vsync call]]
 
  00042100: 00002021 addu r4,r0,r0
 
  00042100: 00002021 addu r4,r0,r0
 
  00042104: 26520001 addiu r18,r18,0x0001
 
  00042104: 26520001 addiu r18,r18,0x0001
Line 175: Line 175:
 
  00042148: 000210c0 sll r2,r2,0x03
 
  00042148: 000210c0 sll r2,r2,0x03
 
  0004214c: 02828021 addu r16,r20,r2
 
  0004214c: 02828021 addu r16,r20,r2
  00042150: 0c0092a2 jal 0x00024a88
+
  00042150: 0c0092a2 jal 0x00024a88               [[SYS ClearOtag]]
 
  00042154: 02002021 addu r4,r16,r0
 
  00042154: 02002021 addu r4,r16,r0
 
  00042158: 3c038004 lui r3,0x8004
 
  00042158: 3c038004 lui r3,0x8004
Line 207: Line 207:
 
  000421c8: 00a22821 addu r5,r5,r2
 
  000421c8: 00a22821 addu r5,r5,r2
 
  000421cc: 000528c0 sll r5,r5,0x03
 
  000421cc: 000528c0 sll r5,r5,0x03
  000421d0: 0c008eed jal 0x00023bb4
+
  000421d0: 0c008eed jal 0x00023bb4               [[P06 AddPrim]]
 
  000421d4: 02452821 addu r5,r18,r5
 
  000421d4: 02452821 addu r5,r18,r5
 
  000421d8: 3c028004 lui r2,0x8004
 
  000421d8: 3c028004 lui r2,0x8004
Line 215: Line 215:
 
  000421e8: 00a22821 addu r5,r5,r2
 
  000421e8: 00a22821 addu r5,r5,r2
 
  000421ec: 00052880 sll r5,r5,0x02
 
  000421ec: 00052880 sll r5,r5,0x02
  000421f0: 0c008eed jal 0x00023bb4
+
  000421f0: 0c008eed jal 0x00023bb4               [[P06 AddPrim]]
 
  000421f4: 02652821 addu r5,r19,r5
 
  000421f4: 02652821 addu r5,r19,r5
 
  000421f8: 3c058001 lui r5,0x8001
 
  000421f8: 3c058001 lui r5,0x8001
 
  000421fc: 8ca50010 lw r5,0x0010(r5)
 
  000421fc: 8ca50010 lw r5,0x0010(r5)
  00042200: 0c010760 jal 0x00041d80
+
  00042200: 0c010760 jal 0x00041d80               [[Draw Image to screen (0, 68) 140 x 20]]
 
  00042204: 02002021 addu r4,r16,r0
 
  00042204: 02002021 addu r4,r16,r0
 
  00042208: 26220008 addiu r2,r17,0x0008
 
  00042208: 26220008 addiu r2,r17,0x0008
Line 228: Line 228:
 
  0004221c: 1440ffc2 bne r2,r0,0x00042128
 
  0004221c: 1440ffc2 bne r2,r0,0x00042128
 
  00042220: 00111400 sll r2,r17,0x10
 
  00042220: 00111400 sll r2,r17,0x10
  00042224: 0c0091b5 jal 0x000246d4
+
  00042224: 0c0091b5 jal 0x000246d4               [[SYS DrawSync]]
 
  00042228: 00002021 addu r4,r0,r0
 
  00042228: 00002021 addu r4,r0,r0
 
  0004222c: 27a40070 addiu r4,r29,0x0070
 
  0004222c: 27a40070 addiu r4,r29,0x0070
Line 239: Line 239:
 
  00042248: a7a00070 sh r0,0x0070(r29)
 
  00042248: a7a00070 sh r0,0x0070(r29)
 
  0004224c: a7a00072 sh r0,0x0072(r29)
 
  0004224c: a7a00072 sh r0,0x0072(r29)
  00042250: 0c00921a jal 0x00024868
+
  00042250: 0c00921a jal 0x00024868               [[SYS ClearImage]]
 
  00042254: a7a20076 sh r2,0x0076(r29)
 
  00042254: a7a20076 sh r2,0x0076(r29)
  00042258: 0c0091b5 jal 0x000246d4
+
  00042258: 0c0091b5 jal 0x000246d4               [[SYS DrawSync]]
 
  0004225c: 00002021 addu r4,r0,r0
 
  0004225c: 00002021 addu r4,r0,r0
 
  00042260: 8fbf008c lw r31,0x008c(r29)
 
  00042260: 8fbf008c lw r31,0x008c(r29)

Latest revision as of 11:55, 25 September 2024

00041e98: 27bdff70 addiu r29,r29,0xff70
00041e9c: afbf008c sw r31,0x008c(r29)
00041ea0: afb40088 sw r20,0x0088(r29)
00041ea4: afb30084 sw r19,0x0084(r29)
00041ea8: afb20080 sw r18,0x0080(r29)
00041eac: afb1007c sw r17,0x007c(r29)
00041eb0: afb00078 sw r16,0x0078(r29)
00041eb4: 3c058004 lui r5,0x8004
00041eb8: 24a50924 addiu r5,r5,0x0924
00041ebc: 88a20003 lwl r2,0x0003(r5)
00041ec0: 98a20000 lwr r2,0x0000(r5)
00041ec4: 88a30007 lwl r3,0x0007(r5)
00041ec8: 98a30004 lwr r3,0x0004(r5)
00041ecc: aba20073 swl r2,0x0073(r29)
00041ed0: bba20070 swr r2,0x0070(r29)
00041ed4: aba30077 swl r3,0x0077(r29)
00041ed8: bba30074 swr r3,0x0074(r29)
00041edc: 34040140 ori r4,r0,0x0140
00041ee0: 340500f0 ori r5,r0,0x00f0
00041ee4: 34060200 ori r6,r0,0x0200
00041ee8: 00003821 addu r7,r0,r0
00041eec: afa00010 sw r0,0x0010(r29)
00041ef0: 0c010566 jal 0x00041598                Initialise Drawing & Display Environments
00041ef4: afa00014 sw r0,0x0014(r29)
00041ef8: 340400c6 ori r4,r0,0x00c6              LBA 0xc6 SCEAP.DAT
00041efc: 34055000 ori r5,r0,0x5000              filesize 0x5000
00041f00: 3c068001 lui r6,0x8001
00041f04: 8cc60010 lw r6,0x0010(r6)              open into
00041f08: 0c011255 jal 0x00044954                Get DAT as WD
00041f0c: 00009021 addu r18,r0,r0
00041f10: 0c008f42 jal 0x00023d08                P16 SetPolyF4
00041f14: 27a40018 addiu r4,r29,0x0018
00041f18: 27a40018 addiu r4,r29,0x0018
00041f1c: 34050001 ori r5,r0,0x0001
00041f20: 34110140 ori r17,r0,0x0140
00041f24: 340200f0 ori r2,r0,0x00f0
00041f28: a3a0001c sb r0,0x001c(r29)
00041f2c: a3a0001d sb r0,0x001d(r29)
00041f30: a3a0001e sb r0,0x001e(r29)
00041f34: a7a00020 sh r0,0x0020(r29)
00041f38: a7a00022 sh r0,0x0022(r29)
00041f3c: a7b10024 sh r17,0x0024(r29)
00041f40: a7a00026 sh r0,0x0026(r29)
00041f44: a7a00028 sh r0,0x0028(r29)
00041f48: a7a2002a sh r2,0x002a(r29)
00041f4c: a7b1002c sh r17,0x002c(r29)
00041f50: 0c008f1a jal 0x00023c68                P10 SetSemiTrans
00041f54: a7a2002e sh r2,0x002e(r29)
00041f58: 8fa20018 lw r2,0x0018(r29)
00041f5c: 8fa3001c lw r3,0x001c(r29)
00041f60: 8fa40020 lw r4,0x0020(r29)
00041f64: 8fa50024 lw r5,0x0024(r29)
00041f68: afa20030 sw r2,0x0030(r29)
00041f6c: afa30034 sw r3,0x0034(r29)
00041f70: afa40038 sw r4,0x0038(r29)
00041f74: afa5003c sw r5,0x003c(r29)
00041f78: 8fa20028 lw r2,0x0028(r29)
00041f7c: 8fa3002c lw r3,0x002c(r29)
00041f80: afa20040 sw r2,0x0040(r29)
00041f84: afa30044 sw r3,0x0044(r29)
00041f88: 27a40048 addiu r4,r29,0x0048
00041f8c: 00002821 addu r5,r0,r0
00041f90: 00003021 addu r6,r0,r0
00041f94: 34070040 ori r7,r0,0x0040
00041f98: 27b00070 addiu r16,r29,0x0070
00041f9c: 0c009533 jal 0x000254cc                P41 SetDrawMode
00041fa0: afb00010 sw r16,0x0010(r29)
00041fa4: 8fa20048 lw r2,0x0048(r29)
00041fa8: 8fa3004c lw r3,0x004c(r29)
00041fac: 8fa40050 lw r4,0x0050(r29)
00041fb0: afa20054 sw r2,0x0054(r29)
00041fb4: afa30058 sw r3,0x0058(r29)
00041fb8: afa4005c sw r4,0x005c(r29)
00041fbc: 02002021 addu r4,r16,r0
00041fc0: 00002821 addu r5,r0,r0
00041fc4: 00003021 addu r6,r0,r0
00041fc8: 00003821 addu r7,r0,r0
00041fcc: 340201e0 ori r2,r0,0x01e0
00041fd0: a7a00070 sh r0,0x0070(r29)
00041fd4: a7a00072 sh r0,0x0072(r29)
00041fd8: a7b10074 sh r17,0x0074(r29)
00041fdc: 0c00921a jal 0x00024868                SYS ClearImage
00041fe0: a7a20076 sh r2,0x0076(r29)
00041fe4: 0c0091b5 jal 0x000246d4                SYS DrawSync
00041fe8: 00002021 addu r4,r0,r0
00041fec: 0c00918e jal 0x00024638                SYS SetDispMask
00041ff0: 34040001 ori r4,r0,0x0001              mask = 1
00041ff4: 0c0076ea jal 0x0001dba8                VSync call
00041ff8: 00002021 addu r4,r0,r0
00041ffc: 26520001 addiu r18,r18,0x0001
00042000: 2a42000f slti r2,r18,0x000f
00042004: 1440fffb bne r2,r0,0x00041ff4
00042008: 341100f8 ori r17,r0,0x00f8
0004200c: 27b40060 addiu r20,r29,0x0060
00042010: 27b20018 addiu r18,r29,0x0018
00042014: 27b30048 addiu r19,r29,0x0048
00042018: 3c028004 lui r2,0x8004
0004201c: 8c42597c lw r2,0x597c(r2)
00042020: 34050002 ori r5,r0,0x0002
00042024: 000210c0 sll r2,r2,0x03
00042028: 02828021 addu r16,r20,r2
0004202c: 0c0092a2 jal 0x00024a88                SYS ClearOtag
00042030: 02002021 addu r4,r16,r0
00042034: 3c038004 lui r3,0x8004
00042038: 8c63597c lw r3,0x597c(r3)
0004203c: 00000000 nop
00042040: 00031040 sll r2,r3,0x01
00042044: 00431021 addu r2,r2,r3
00042048: 000210c0 sll r2,r2,0x03
0004204c: 00521021 addu r2,r2,r18
00042050: a0510004 sb r17,0x0004(r2)
00042054: 3c038004 lui r3,0x8004
00042058: 8c63597c lw r3,0x597c(r3)
0004205c: 00000000 nop
00042060: 00031040 sll r2,r3,0x01
00042064: 00431021 addu r2,r2,r3
00042068: 000210c0 sll r2,r2,0x03
0004206c: 00521021 addu r2,r2,r18
00042070: a0510005 sb r17,0x0005(r2)
00042074: 3c038004 lui r3,0x8004
00042078: 8c63597c lw r3,0x597c(r3)
0004207c: 00000000 nop
00042080: 00031040 sll r2,r3,0x01
00042084: 00431021 addu r2,r2,r3
00042088: 000210c0 sll r2,r2,0x03
0004208c: 00521021 addu r2,r2,r18
00042090: a0510006 sb r17,0x0006(r2)
00042094: 3c028004 lui r2,0x8004
00042098: 8c42597c lw r2,0x597c(r2)
0004209c: 02002021 addu r4,r16,r0
000420a0: 00022840 sll r5,r2,0x01
000420a4: 00a22821 addu r5,r5,r2
000420a8: 000528c0 sll r5,r5,0x03
000420ac: 0c008eed jal 0x00023bb4                P06 AddPrim
000420b0: 02452821 addu r5,r18,r5
000420b4: 3c028004 lui r2,0x8004
000420b8: 8c42597c lw r2,0x597c(r2)
000420bc: 02002021 addu r4,r16,r0
000420c0: 00022840 sll r5,r2,0x01
000420c4: 00a22821 addu r5,r5,r2
000420c8: 00052880 sll r5,r5,0x02
000420cc: 0c008eed jal 0x00023bb4                P06 AddPrim
000420d0: 02652821 addu r5,r19,r5
000420d4: 3c058001 lui r5,0x8001
000420d8: 8ca50010 lw r5,0x0010(r5)
000420dc: 0c010760 jal 0x00041d80                00041d80 - 00041e94
000420e0: 02002021 addu r4,r16,r0
000420e4: 2622fff8 addiu r2,r17,0xfff8
000420e8: 00408821 addu r17,r2,r0
000420ec: 00021400 sll r2,r2,0x10
000420f0: 0441ffc9 bgez r2,0x00042018
000420f4: 00000000 nop
000420f8: 00009021 addu r18,r0,r0
000420fc: 0c0076ea jal 0x0001dba8                Vsync call
00042100: 00002021 addu r4,r0,r0
00042104: 26520001 addiu r18,r18,0x0001
00042108: 2a4200b4 slti r2,r18,0x00b4
0004210c: 1440fffb bne r2,r0,0x000420fc
00042110: 00000000 nop
00042114: 00008821 addu r17,r0,r0
00042118: 27b40060 addiu r20,r29,0x0060
0004211c: 27b20018 addiu r18,r29,0x0018
00042120: 27b30048 addiu r19,r29,0x0048
00042124: 00111400 sll r2,r17,0x10
00042128: 00021403 sra r2,r2,0x10
0004212c: 284200f8 slti r2,r2,0x00f8
00042130: 14400002 bne r2,r0,0x0004213c
00042134: 34050002 ori r5,r0,0x0002
00042138: 341100ff ori r17,r0,0x00ff
0004213c: 3c028004 lui r2,0x8004
00042140: 8c42597c lw r2,0x597c(r2)
00042144: 00000000 nop
00042148: 000210c0 sll r2,r2,0x03
0004214c: 02828021 addu r16,r20,r2
00042150: 0c0092a2 jal 0x00024a88                SYS ClearOtag
00042154: 02002021 addu r4,r16,r0
00042158: 3c038004 lui r3,0x8004
0004215c: 8c63597c lw r3,0x597c(r3)
00042160: 00000000 nop
00042164: 00031040 sll r2,r3,0x01
00042168: 00431021 addu r2,r2,r3
0004216c: 000210c0 sll r2,r2,0x03
00042170: 00521021 addu r2,r2,r18
00042174: a0510004 sb r17,0x0004(r2)
00042178: 3c038004 lui r3,0x8004
0004217c: 8c63597c lw r3,0x597c(r3)
00042180: 00000000 nop
00042184: 00031040 sll r2,r3,0x01
00042188: 00431021 addu r2,r2,r3
0004218c: 000210c0 sll r2,r2,0x03
00042190: 00521021 addu r2,r2,r18
00042194: a0510005 sb r17,0x0005(r2)
00042198: 3c038004 lui r3,0x8004
0004219c: 8c63597c lw r3,0x597c(r3)
000421a0: 00000000 nop
000421a4: 00031040 sll r2,r3,0x01
000421a8: 00431021 addu r2,r2,r3
000421ac: 000210c0 sll r2,r2,0x03
000421b0: 00521021 addu r2,r2,r18
000421b4: a0510006 sb r17,0x0006(r2)
000421b8: 3c028004 lui r2,0x8004
000421bc: 8c42597c lw r2,0x597c(r2)
000421c0: 02002021 addu r4,r16,r0
000421c4: 00022840 sll r5,r2,0x01
000421c8: 00a22821 addu r5,r5,r2
000421cc: 000528c0 sll r5,r5,0x03
000421d0: 0c008eed jal 0x00023bb4                P06 AddPrim
000421d4: 02452821 addu r5,r18,r5
000421d8: 3c028004 lui r2,0x8004
000421dc: 8c42597c lw r2,0x597c(r2)
000421e0: 02002021 addu r4,r16,r0
000421e4: 00022840 sll r5,r2,0x01
000421e8: 00a22821 addu r5,r5,r2
000421ec: 00052880 sll r5,r5,0x02
000421f0: 0c008eed jal 0x00023bb4                P06 AddPrim
000421f4: 02652821 addu r5,r19,r5
000421f8: 3c058001 lui r5,0x8001
000421fc: 8ca50010 lw r5,0x0010(r5)
00042200: 0c010760 jal 0x00041d80                Draw Image to screen (0, 68) 140 x 20
00042204: 02002021 addu r4,r16,r0
00042208: 26220008 addiu r2,r17,0x0008
0004220c: 00408821 addu r17,r2,r0
00042210: 00021400 sll r2,r2,0x10
00042214: 00021403 sra r2,r2,0x10
00042218: 28420100 slti r2,r2,0x0100
0004221c: 1440ffc2 bne r2,r0,0x00042128
00042220: 00111400 sll r2,r17,0x10
00042224: 0c0091b5 jal 0x000246d4                SYS DrawSync
00042228: 00002021 addu r4,r0,r0
0004222c: 27a40070 addiu r4,r29,0x0070
00042230: 00002821 addu r5,r0,r0
00042234: 00003021 addu r6,r0,r0
00042238: 00003821 addu r7,r0,r0
0004223c: 34020140 ori r2,r0,0x0140
00042240: a7a20074 sh r2,0x0074(r29)
00042244: 340201e0 ori r2,r0,0x01e0
00042248: a7a00070 sh r0,0x0070(r29)
0004224c: a7a00072 sh r0,0x0072(r29)
00042250: 0c00921a jal 0x00024868                SYS ClearImage
00042254: a7a20076 sh r2,0x0076(r29)
00042258: 0c0091b5 jal 0x000246d4                SYS DrawSync
0004225c: 00002021 addu r4,r0,r0
00042260: 8fbf008c lw r31,0x008c(r29)
00042264: 8fb40088 lw r20,0x0088(r29)
00042268: 8fb30084 lw r19,0x0084(r29)
0004226c: 8fb20080 lw r18,0x0080(r29)
00042270: 8fb1007c lw r17,0x007c(r29)
00042274: 8fb00078 lw r16,0x0078(r29)
00042278: 27bd0090 addiu r29,r29,0x0090
0004227c: 03e00008 jr r31
00042280: 00000000 nop