Difference between revisions of "0007d3f4 - 0007d474"
Jump to navigation
Jump to search
(Created page with "<font face='Courier New'> 0007d3f4: 27bdffd8 addiu r29,r29,0xffd8 0007d3f8: afb00018 sw r16,0x0018(r29) 0007d3fc: 00808021 addu r16,r4,r0 0007d400: afbf0020 sw r31,0x002...") |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<font face='Courier New'> | <font face='Courier New'> | ||
− | |||
0007d3f4: 27bdffd8 addiu r29,r29,0xffd8 | 0007d3f4: 27bdffd8 addiu r29,r29,0xffd8 | ||
0007d3f8: afb00018 sw r16,0x0018(r29) | 0007d3f8: afb00018 sw r16,0x0018(r29) | ||
− | 0007d3fc: 00808021 addu r16,r4,r0 | + | 0007d3fc: 00808021 addu r16,r4,r0 r16 = Unit's Misc Data Pointer |
0007d400: afbf0020 sw r31,0x0020(r29) | 0007d400: afbf0020 sw r31,0x0020(r29) | ||
− | 0007d404: 0c01f428 jal 0x0007d0a0 | + | 0007d404: 0c01f428 jal 0x0007d0a0 [[Get_Unit_misc_data_pointer_of_ridden_unit_by_r4]] - Find mount's Unit Misc Data Pointer |
0007d408: afb1001c sw r17,0x001c(r29) | 0007d408: afb1001c sw r17,0x001c(r29) | ||
− | 0007d40c: 00408821 addu r17,r2,r0 | + | 0007d40c: 00408821 addu r17,r2,r0 r17 = mount's Unit's Misc Data Pointer |
− | 0007d410: 96220040 lhu r2,0x0040(r17) | + | 0007d410: 96220040 lhu r2,0x0040(r17) Load X Mod? |
0007d414: 00000000 nop | 0007d414: 00000000 nop | ||
− | 0007d418: a7a20010 sh r2,0x0010(r29) | + | 0007d418: a7a20010 sh r2,0x0010(r29) Store X Mod? |
− | 0007d41c: 96220044 lhu r2,0x0044(r17) | + | 0007d41c: 96220044 lhu r2,0x0044(r17) Load Y Mod? |
− | 0007d420: 02202021 addu r4,r17,r0 | + | 0007d420: 02202021 addu r4,r17,r0 r4 = Mount's Unit's Misc Data Pointer |
− | 0007d424: a7a20014 sh r2,0x0014(r29) | + | 0007d424: a7a20014 sh r2,0x0014(r29) Store Y Mod? |
− | 0007d428: 9222007e lbu r2,0x007e(r17) | + | 0007d428: 9222007e lbu r2,0x007e(r17) Load Unit's Map Level |
− | 0007d42c: 27a50010 addiu r5,r29,0x0010 | + | 0007d42c: 27a50010 addiu r5,r29,0x0010 r5 = Stack Pointer + 0x10 |
− | 0007d430: 0c01f435 jal 0x0007d0d4 | + | 0007d430: 0c01f435 jal 0x0007d0d4 [[Complex Height Data from unit misc data and coordinates]] |
− | 0007d434: a7a20012 sh r2,0x0012(r29) | + | 0007d434: a7a20012 sh r2,0x0012(r29) Store Unit's Map Level |
− | 0007d438: 00402021 addu r4,r2,r0 | + | 0007d438: 00402021 addu r4,r2,r0 Height |
− | 0007d43c: 92030130 lbu r3,0x0130(r16) | + | 0007d43c: 92030130 lbu r3,0x0130(r16) Load mount/rider value |
0007d440: 34020001 ori r2,r0,0x0001 | 0007d440: 34020001 ori r2,r0,0x0001 | ||
− | 0007d444: 14620005 bne r3,r2,0x0007d45c | + | 0007d444: 14620005 bne r3,r2,0x0007d45c branch if not riding unit who's height was just calculated |
0007d448: 00041400 sll r2,r4,0x10 | 0007d448: 00041400 sll r2,r4,0x10 | ||
− | 0007d44c: 96230076 lhu r3,0x0076(r17) | + | 0007d44c: 96230076 lhu r3,0x0076(r17) load riding height |
− | 0007d450: 2482fff6 addiu r2,r4,0xfff6 | + | 0007d450: 2482fff6 addiu r2,r4,0xfff6 complex height - 0x9 |
− | 0007d454: 00622021 addu r4,r3,r2 | + | 0007d454: 00622021 addu r4,r3,r2 add to complex height |
0007d458: 00041400 sll r2,r4,0x10 | 0007d458: 00041400 sll r2,r4,0x10 | ||
− | 0007d45c: 00021403 sra r2,r2,0x10 | + | 0007d45c: 00021403 sra r2,r2,0x10 return r2 = complex height of unit being ridden |
0007d460: 8fbf0020 lw r31,0x0020(r29) | 0007d460: 8fbf0020 lw r31,0x0020(r29) | ||
0007d464: 8fb1001c lw r17,0x001c(r29) | 0007d464: 8fb1001c lw r17,0x001c(r29) |
Latest revision as of 09:33, 10 October 2022
0007d3f4: 27bdffd8 addiu r29,r29,0xffd8 0007d3f8: afb00018 sw r16,0x0018(r29) 0007d3fc: 00808021 addu r16,r4,r0 r16 = Unit's Misc Data Pointer 0007d400: afbf0020 sw r31,0x0020(r29) 0007d404: 0c01f428 jal 0x0007d0a0 Get_Unit_misc_data_pointer_of_ridden_unit_by_r4 - Find mount's Unit Misc Data Pointer 0007d408: afb1001c sw r17,0x001c(r29) 0007d40c: 00408821 addu r17,r2,r0 r17 = mount's Unit's Misc Data Pointer 0007d410: 96220040 lhu r2,0x0040(r17) Load X Mod? 0007d414: 00000000 nop 0007d418: a7a20010 sh r2,0x0010(r29) Store X Mod? 0007d41c: 96220044 lhu r2,0x0044(r17) Load Y Mod? 0007d420: 02202021 addu r4,r17,r0 r4 = Mount's Unit's Misc Data Pointer 0007d424: a7a20014 sh r2,0x0014(r29) Store Y Mod? 0007d428: 9222007e lbu r2,0x007e(r17) Load Unit's Map Level 0007d42c: 27a50010 addiu r5,r29,0x0010 r5 = Stack Pointer + 0x10 0007d430: 0c01f435 jal 0x0007d0d4 Complex Height Data from unit misc data and coordinates 0007d434: a7a20012 sh r2,0x0012(r29) Store Unit's Map Level 0007d438: 00402021 addu r4,r2,r0 Height 0007d43c: 92030130 lbu r3,0x0130(r16) Load mount/rider value 0007d440: 34020001 ori r2,r0,0x0001 0007d444: 14620005 bne r3,r2,0x0007d45c branch if not riding unit who's height was just calculated 0007d448: 00041400 sll r2,r4,0x10 0007d44c: 96230076 lhu r3,0x0076(r17) load riding height 0007d450: 2482fff6 addiu r2,r4,0xfff6 complex height - 0x9 0007d454: 00622021 addu r4,r3,r2 add to complex height 0007d458: 00041400 sll r2,r4,0x10 0007d45c: 00021403 sra r2,r2,0x10 return r2 = complex height of unit being ridden 0007d460: 8fbf0020 lw r31,0x0020(r29) 0007d464: 8fb1001c lw r17,0x001c(r29) 0007d468: 8fb00018 lw r16,0x0018(r29) 0007d46c: 27bd0028 addiu r29,r29,0x0028 0007d470: 03e00008 jr r31 0007d474: 00000000 nop