Get Final Height data from unit misc data
Jump to navigation
Jump to search
0007d51c: 27bdffd8 addiu r29,r29,0xffd8 0007d520: afb00018 sw r16,0x0018(r29) 0007d524: 00808021 addu r16,r4,r0 r16 = Unit's Misc Data Pointer 0007d528: afbf0020 sw r31,0x0020(r29) 0007d52c: 0c01f428 jal 0x0007d0a0 Find ? Unit Misc Data Pointer 0007d530: afb1001c sw r17,0x001c(r29) 0007d534: 00408821 addu r17,r2,r0 r17 = ? Unit's Misc Data Pointer 0007d538: 8e220134 lw r2,0x0134(r17) Load ? Unit's Data Pointer 0007d53c: 00000000 nop 0007d540: 90430047 lbu r3,0x0047(r2) Load ? Unit's X 0007d544: 00000000 nop 0007d548: 000310c0 sll r2,r3,0x03 X * 8 0007d54c: 00431023 subu r2,r2,r3 X * 7 0007d550: 00021080 sll r2,r2,0x02 X * 28 0007d554: 2442000e addiu r2,r2,0x000e X * 28 + 14 0007d558: a7a20010 sh r2,0x0010(r29) Store ? Unit's X Mod 0007d55c: 8e220134 lw r2,0x0134(r17) Load ? Unit's Data Pointer 0007d560: 00000000 nop 0007d564: 90430048 lbu r3,0x0048(r2) Load ? Unit's Y 0007d568: 02202021 addu r4,r17,r0 r4 = ? Unit's Misc Data Pointer 0007d56c: 000310c0 sll r2,r3,0x03 Y * 8 0007d570: 00431023 subu r2,r2,r3 Y * 7 0007d574: 00021080 sll r2,r2,0x02 Y * 28 0007d578: 2442000e addiu r2,r2,0x000e Y * 28 + 14 0007d57c: a7a20014 sh r2,0x0014(r29) Store ? Unit's Y Mod 0007d580: 9222007e lbu r2,0x007e(r17) Load ? Unit's Map Level 0007d584: 27a50010 addiu r5,r29,0x0010 r5 = Stack Pointer + 0x10 0007d588: 0c01f435 jal 0x0007d0d4 0007d58c: a7a20012 sh r2,0x0012(r29) Store ? Unit's Map Level 0007d590: 00402021 addu r4,r2,r0 r4 = 0007d594: 92030130 lbu r3,0x0130(r16) 0007d598: 34020001 ori r2,r0,0x0001 0007d59c: 14620005 bne r3,r2,0x0007d5b4 0007d5a0: 00041400 sll r2,r4,0x10 0007d5a4: 96230076 lhu r3,0x0076(r17) 0007d5a8: 2482fff6 addiu r2,r4,0xfff6 0007d5ac: 00622021 addu r4,r3,r2 0007d5b0: 00041400 sll r2,r4,0x10 0007d5b4: 00021403 sra r2,r2,0x10 0007d5b8: 8fbf0020 lw r31,0x0020(r29) 0007d5bc: 8fb1001c lw r17,0x001c(r29) 0007d5c0: 8fb00018 lw r16,0x0018(r29) 0007d5c4: 27bd0028 addiu r29,r29,0x0028 0007d5c8: 03e00008 jr r31 0007d5cc: 00000000 nop