Draw Squaresoft Logo & Fade out
(Redirected from 00041b1c - 00041d7c)
Jump to navigation
Jump to search
00041b1c: 27bdff70 addiu r29,r29,0xff70 00041b20: afbf008c sw r31,0x008c(r29) 00041b24: afb40088 sw r20,0x0088(r29) 00041b28: afb30084 sw r19,0x0084(r29) 00041b2c: afb20080 sw r18,0x0080(r29) 00041b30: afb1007c sw r17,0x007c(r29) 00041b34: afb00078 sw r16,0x0078(r29) 00041b38: 3c058004 lui r5,0x8004 00041b3c: 24a50924 addiu r5,r5,0x0924 00041b40: 88a20003 lwl r2,0x0003(r5) 00041b44: 98a20000 lwr r2,0x0000(r5) 00041b48: 88a30007 lwl r3,0x0007(r5) 00041b4c: 98a30004 lwr r3,0x0004(r5) 00041b50: aba20073 swl r2,0x0073(r29) 00041b54: bba20070 swr r2,0x0070(r29) some primative 00041b58: aba30077 swl r3,0x0077(r29) 00041b5c: bba30074 swr r3,0x0074(r29) 00041b60: 00008821 addu r17,r0,r0 00041b64: 0c008f42 jal 0x00023d08 P16 SetPolyF4 00041b68: 27a40018 addiu r4,r29,0x0018 00041b6c: 27a40018 addiu r4,r29,0x0018 00041b70: 34050001 ori r5,r0,0x0001 00041b74: 34030140 ori r3,r0,0x0140 00041b78: 34020100 ori r2,r0,0x0100 00041b7c: a3a0001c sb r0,0x001c(r29) 0 r 00041b80: a3a0001d sb r0,0x001d(r29) 0 g 00041b84: a3a0001e sb r0,0x001e(r29) 0 b 00041b88: a7a00020 sh r0,0x0020(r29) x0 = 0 00041b8c: a7a00022 sh r0,0x0022(r29) y0 = 0 00041b90: a7a30024 sh r3,0x0024(r29) x1 = 0x140 00041b94: a7a00026 sh r0,0x0026(r29) y1 = 0 00041b98: a7a00028 sh r0,0x0028(r29) x2 = 0 00041b9c: a7a2002a sh r2,0x002a(r29) y2 = 0x100 00041ba0: a7a3002c sh r3,0x002c(r29) x3 = 0x140 00041ba4: 0c008f1a jal 0x00023c68 P10 SetSemiTrans 00041ba8: a7a2002e sh r2,0x002e(r29) y3 = 0x100 (makes a 256 by 320 black rectangle) 00041bac: 8fa20018 lw r2,0x0018(r29) load tag 00041bb0: 8fa3001c lw r3,0x001c(r29) load RGB & code 00041bb4: 8fa40020 lw r4,0x0020(r29) load (x0, y0) 00041bb8: 8fa50024 lw r5,0x0024(r29) load (x1, y1) 00041bbc: afa20030 sw r2,0x0030(r29) store tag 00041bc0: afa30034 sw r3,0x0034(r29) store RGB & code 00041bc4: afa40038 sw r4,0x0038(r29) store (x0, y0) 00041bc8: afa5003c sw r5,0x003c(r29) store (x1, y1) 00041bcc: 8fa20028 lw r2,0x0028(r29) load (x2, y2) 00041bd0: 8fa3002c lw r3,0x002c(r29) load (x3, y3) 00041bd4: afa20040 sw r2,0x0040(r29) store (x2, y2) 00041bd8: afa30044 sw r3,0x0044(r29) store (x3, y3) 00041bdc: 27b00048 addiu r16,r29,0x0048 00041be0: 02002021 addu r4,r16,r0 point to draw mode primative 00041be4: 00002821 addu r5,r0,r0 drawing not allowed in display area 00041be8: 00003021 addu r6,r0,r0 dithering off 00041bec: 34070040 ori r7,r0,0x0040 tpage 0x40 (nnnot a valid tpage. extra flag meaning? otherwise just tpage 0.) 00041bf0: 27a20070 addiu r2,r29,0x0070 00041bf4: 0c009533 jal 0x000254cc P41 SetDrawMode 00041bf8: afa20010 sw r2,0x0010(r29) pointer to 0x70 stack 00041bfc: 8fa20048 lw r2,0x0048(r29) load DR_MODE's tag 00041c00: 8fa3004c lw r3,0x004c(r29) 00041c04: 8fa40050 lw r4,0x0050(r29) code 00041c08: afa20054 sw r2,0x0054(r29) 00041c0c: afa30058 sw r3,0x0058(r29) 00041c10: afa4005c sw r4,0x005c(r29) move em up in the stack 00041c14: 27b40060 addiu r20,r29,0x0060 00041c18: 27b20018 addiu r18,r29,0x0018 00041c1c: 02009821 addu r19,r16,r0 00041c20: 00111400 sll r2,r17,0x10 00041c24: 00021403 sra r2,r2,0x10 00041c28: 284200f8 slti r2,r2,0x00f8 00041c2c: 14400002 bne r2,r0,0x00041c38 00041c30: 34050002 ori r5,r0,0x0002 clear 2 entries 00041c34: 341100ff ori r17,r0,0x00ff 00041c38: 3c108004 lui r16,0x8004 00041c3c: 8e10597c lw r16,0x597c(r16) top/bottom screen flag 00041c40: 00000000 nop 00041c44: 001080c0 sll r16,r16,0x03 00041c48: 02908021 addu r16,r20,r16 00041c4c: 0c0092a2 jal 0x00024a88 SYS ClearOtag 00041c50: 02002021 addu r4,r16,r0 stack + 0x60 + top/bottom screen * 8 00041c54: 3c038004 lui r3,0x8004 00041c58: 8c63597c lw r3,0x597c(r3) 00041c5c: 00000000 nop 00041c60: 00031040 sll r2,r3,0x01 00041c64: 00431021 addu r2,r2,r3 00041c68: 000210c0 sll r2,r2,0x03 00041c6c: 00521021 addu r2,r2,r18 00041c70: a0510004 sb r17,0x0004(r2) 00041c74: 3c038004 lui r3,0x8004 00041c78: 8c63597c lw r3,0x597c(r3) 00041c7c: 00000000 nop 00041c80: 00031040 sll r2,r3,0x01 00041c84: 00431021 addu r2,r2,r3 00041c88: 000210c0 sll r2,r2,0x03 00041c8c: 00521021 addu r2,r2,r18 00041c90: a0510005 sb r17,0x0005(r2) 00041c94: 3c038004 lui r3,0x8004 00041c98: 8c63597c lw r3,0x597c(r3) 00041c9c: 00000000 nop 00041ca0: 00031040 sll r2,r3,0x01 00041ca4: 00431021 addu r2,r2,r3 00041ca8: 000210c0 sll r2,r2,0x03 00041cac: 00521021 addu r2,r2,r18 00041cb0: a0510006 sb r17,0x0006(r2) 00041cb4: 3c028004 lui r2,0x8004 00041cb8: 8c42597c lw r2,0x597c(r2) 00041cbc: 02002021 addu r4,r16,r0 00041cc0: 00022840 sll r5,r2,0x01 00041cc4: 00a22821 addu r5,r5,r2 00041cc8: 000528c0 sll r5,r5,0x03 00041ccc: 0c008eed jal 0x00023bb4 P06 AddPrim 00041cd0: 02452821 addu r5,r18,r5 00041cd4: 3c028004 lui r2,0x8004 00041cd8: 8c42597c lw r2,0x597c(r2) 00041cdc: 02002021 addu r4,r16,r0 00041ce0: 00022840 sll r5,r2,0x01 00041ce4: 00a22821 addu r5,r5,r2 00041ce8: 00052880 sll r5,r5,0x02 00041cec: 0c008eed jal 0x00023bb4 P06 AddPrim 00041cf0: 02652821 addu r5,r19,r5 00041cf4: 3c058004 lui r5,0x8004 00041cf8: 24a55a00 addiu r5,r5,0x5a00 00041cfc: 0c0105dd jal 0x00041774 Draw Image to screen (46,70) b4 x 10 00041d00: 02002021 addu r4,r16,r0 00041d04: 26220008 addiu r2,r17,0x0008 00041d08: 00408821 addu r17,r2,r0 00041d0c: 00021400 sll r2,r2,0x10 00041d10: 00021403 sra r2,r2,0x10 00041d14: 28420100 slti r2,r2,0x0100 00041d18: 1440ffc2 bne r2,r0,0x00041c24 00041d1c: 00111400 sll r2,r17,0x10 00041d20: 0c0091b5 jal 0x000246d4 SYS DrawSync 00041d24: 00002021 addu r4,r0,r0 00041d28: 27a40070 addiu r4,r29,0x0070 00041d2c: 00002821 addu r5,r0,r0 00041d30: 00003021 addu r6,r0,r0 00041d34: 00003821 addu r7,r0,r0 00041d38: 34020100 ori r2,r0,0x0100 00041d3c: a7a20074 sh r2,0x0074(r29) 00041d40: 340201e0 ori r2,r0,0x01e0 00041d44: a7a00070 sh r0,0x0070(r29) 00041d48: a7a00072 sh r0,0x0072(r29) 00041d4c: 0c00921a jal 0x00024868 SYS ClearImage 00041d50: a7a20076 sh r2,0x0076(r29) 00041d54: 0c0091b5 jal 0x000246d4 SYS DrawSync 00041d58: 00002021 addu r4,r0,r0 00041d5c: 8fbf008c lw r31,0x008c(r29) 00041d60: 8fb40088 lw r20,0x0088(r29) 00041d64: 8fb30084 lw r19,0x0084(r29) 00041d68: 8fb20080 lw r18,0x0080(r29) 00041d6c: 8fb1007c lw r17,0x007c(r29) 00041d70: 8fb00078 lw r16,0x0078(r29) 00041d74: 27bd0090 addiu r29,r29,0x0090 00041d78: 03e00008 jr r31 00041d7c: 00000000 nop