Effect script 25 Render Effect
Jump to navigation
Jump to search
001a2eb4: 27bdffd8 addiu r29,r29,0xffd8 001a2eb8: afb1001c sw r17,0x001c(r29) 001a2ebc: 00808821 addu r17,r4,r0 #temp. effect data table 001a2ec0: 3c08800a lui r8,0x800a 001a2ec4: 25088a24 addiu r8,r8,0x8a24 #camera matrix 001a2ec8: afbf0024 sw r31,0x0024(r29) 001a2ecc: afb20020 sw r18,0x0020(r29) 001a2ed0: afb00018 sw r16,0x0018(r29) 001a2ed4: 8e3200d0 lw r18,0x00d0(r17) #0xd0* from effect table? 001a2ed8: 01006021 addu r12,r8,r0 #camera matrix 001a2edc: 8d8d0000 lw r13,0x0000(r12) #camera xx and xy 001a2ee0: 8d8e0004 lw r14,0x0004(r12) #camera xz and yx 001a2ee4: 48cd0000 ctc2 r13,gtecr00_r11r12 001a2ee8: 48ce0800 ctc2 r14,gtecr01_r13r21 #move matrix elements to gte coprocessors 001a2eec: 8d8d0008 lw r13,0x0008(r12) #camera yy and yz 001a2ef0: 8d8e000c lw r14,0x000c(r12) #camera zx and zy 001a2ef4: 8d8f0010 lw r15,0x0010(r12) #camera zz 001a2ef8: 48cd1000 ctc2 r13,gtecr02_r22r23 001a2efc: 48ce1800 ctc2 r14,gtecr03_r31r32 001a2f00: 48cf2000 ctc2 r15,gtecr04_r33 #move matrix elements to gte coprocessors 001a2f04: 01006021 addu r12,r8,r0 001a2f08: 8d8d0014 lw r13,0x0014(r12) 001a2f0c: 8d8e0018 lw r14,0x0018(r12) 001a2f10: 48cd2800 ctc2 r13,gtecr05_trx #move camera-world space transposing elements to coprocessors 001a2f14: 8d8f001c lw r15,0x001c(r12) 001a2f18: 48ce3000 ctc2 r14,gtecr06_try 001a2f1c: 48cf3800 ctc2 r15,gtecr07_trz 001a2f20: 8e2400d0 lw r4,0x00d0(r17) #parse 0xd0* 001a2f24: 0c06a6ec jal 0x001a9bb0 #001a9bb0 - 001a9f40 001a2f28: 00000000 nop 001a2f2c: 12400064 beq r18,r0,0x001a30c0 #end if 0xd0 element is 0 001a2f30: 02408021 addu r16,r18,r0 001a2f34: 9602004e lhu r2,0x004e(r16) #0xd0 is a pointer to effect motion data? 001a2f38: 8e120004 lw r18,0x0004(r16) # 001a2f3c: 30420300 andi r2,r2,0x0300 001a2f40: 00022102 srl r4,r2,0x04 001a2f44: 1080001e beq r4,r0,0x001a2fc0 001a2f48: 00000000 nop 001a2f4c: 8e02000c lw r2,0x000c(r16) 001a2f50: 8603003c lh r3,0x003c(r16) 001a2f54: 00021303 sra r2,r2,0x0c 001a2f58: 00431823 subu r3,r2,r3 001a2f5c: 0064102a slt r2,r3,r4 001a2f60: 10400017 beq r2,r0,0x001a2fc0 001a2f64: 00042823 subu r5,r0,r4 001a2f68: 00a3102a slt r2,r5,r3 001a2f6c: 10400014 beq r2,r0,0x001a2fc0 001a2f70: 00000000 nop 001a2f74: 8e020010 lw r2,0x0010(r16) 001a2f78: 8603003e lh r3,0x003e(r16) 001a2f7c: 00021303 sra r2,r2,0x0c 001a2f80: 00431823 subu r3,r2,r3 001a2f84: 0064102a slt r2,r3,r4 001a2f88: 1040000d beq r2,r0,0x001a2fc0 001a2f8c: 00a3102a slt r2,r5,r3 001a2f90: 1040000b beq r2,r0,0x001a2fc0 001a2f94: 00000000 nop 001a2f98: 8e020014 lw r2,0x0014(r16) 001a2f9c: 86030040 lh r3,0x0040(r16) 001a2fa0: 00021303 sra r2,r2,0x0c 001a2fa4: 00431823 subu r3,r2,r3 001a2fa8: 0064102a slt r2,r3,r4 001a2fac: 10400004 beq r2,r0,0x001a2fc0 001a2fb0: 00a3102a slt r2,r5,r3 001a2fb4: 10400002 beq r2,r0,0x001a2fc0 001a2fb8: 2402ffff addiu r2,r0,0xffff 001a2fbc: a6020042 sh r2,0x0042(r16) 001a2fc0: 9602004c lhu r2,0x004c(r16) 001a2fc4: 02202021 addu r4,r17,r0 001a2fc8: 00021302 srl r2,r2,0x0c 001a2fcc: 00021080 sll r2,r2,0x02 001a2fd0: 3c01801b lui r1,0x801b 001a2fd4: 00220821 addu r1,r1,r2 001a2fd8: 8c2269bc lw r2,0x69bc(r1) # the fact that this looks variable is a fucking lie. there are 4 addresses called and they all go to 001a5ea4 - 001a600c 001a2fdc: 00000000 nop 001a2fe0: 0040f809 jalr r2,r31 # 001a5ea4 - 001a600c 001a2fe4: 02002821 addu r5,r16,r0 001a2fe8: 9602004e lhu r2,0x004e(r16) 001a2fec: 00000000 nop 001a2ff0: 3043000c andi r3,r2,0x000c 001a2ff4: 34020004 ori r2,r0,0x0004 001a2ff8: 10620003 beq r3,r2,0x001a3008 001a2ffc: 34020008 ori r2,r0,0x0008 001a3000: 14620006 bne r3,r2,0x001a301c 001a3004: 00000000 nop 001a3008: 86240002 lh r4,0x0002(r17) 001a300c: 86250020 lh r5,0x0020(r17) 001a3010: 92060053 lbu r6,0x0053(r16) 001a3014: 0c06982b jal 0x001a60ac 001a3018: 02003821 addu r7,r16,r0 001a301c: 96020050 lhu r2,0x0050(r16) 001a3020: 340300a0 ori r3,r0,0x00a0 001a3024: 24420001 addiu r2,r2,0x0001 001a3028: a6020050 sh r2,0x0050(r16) 001a302c: 00021400 sll r2,r2,0x10 001a3030: 00021403 sra r2,r2,0x10 001a3034: 14430002 bne r2,r3,0x001a3040 001a3038: 00000000 nop 001a303c: a6000050 sh r0,0x0050(r16) 001a3040: 86030042 lh r3,0x0042(r16) 001a3044: 2402ffff addiu r2,r0,0xffff 001a3048: 14620006 bne r3,r2,0x001a3064 001a304c: 00602021 addu r4,r3,r0 001a3050: 8e020054 lw r2,0x0054(r16) 001a3054: 00000000 nop 001a3058: 84420016 lh r2,0x0016(r2) 001a305c: 08068c1c j 0x001a3070 001a3060: 00000000 nop 001a3064: 2482ffff addiu r2,r4,0xffff 001a3068: a6020042 sh r2,0x0042(r16) 001a306c: 00021400 sll r2,r2,0x10 001a3070: 1440ffae bne r2,r0,0x001a2f2c 001a3074: 00000000 nop 001a3078: 9602004e lhu r2,0x004e(r16) 001a307c: 00000000 nop 001a3080: 30430003 andi r3,r2,0x0003 001a3084: 34020001 ori r2,r0,0x0001 001a3088: 10620003 beq r3,r2,0x001a3098 001a308c: 34020002 ori r2,r0,0x0002 001a3090: 14620006 bne r3,r2,0x001a30ac 001a3094: 00000000 nop 001a3098: 86240002 lh r4,0x0002(r17) 001a309c: 86250020 lh r5,0x0020(r17) 001a30a0: 92060052 lbu r6,0x0052(r16) 001a30a4: 0c06982b jal 0x001a60ac 001a30a8: 02003821 addu r7,r16,r0 001a30ac: 86240002 lh r4,0x0002(r17) 001a30b0: 0c06975d jal 0x001a5d74 001a30b4: 02002821 addu r5,r16,r0 001a30b8: 08068bcb j 0x001a2f2c 001a30bc: 00000000 nop 001a30c0: 96230006 lhu r3,0x0006(r17) 001a30c4: 34020001 ori r2,r0,0x0001 001a30c8: 24630002 addiu r3,r3,0x0002 001a30cc: a6230006 sh r3,0x0006(r17) 001a30d0: 8fbf0024 lw r31,0x0024(r29) 001a30d4: 8fb20020 lw r18,0x0020(r29) 001a30d8: 8fb1001c lw r17,0x001c(r29) 001a30dc: 8fb00018 lw r16,0x0018(r29) 001a30e0: 27bd0028 addiu r29,r29,0x0028 001a30e4: 03e00008 jr r31 001a30e8: 00000000 nop