Calculate Unit's Palette/Portrait (return Portrait)
Jump to navigation
Jump to search
Calculate Unit's Palette/Portrait (return Portrait) 0005e088: 27bdffe0 addiu r29,r29,0xffe0 0005e08c: afb00010 sw r16,0x0010(r29) 0005e090: 00808021 addu r16,r4,r0 r16 = Unit's Data Pointer 0005e094: afb10014 sw r17,0x0014(r29) 0005e098: afbf0018 sw r31,0x0018(r29) 0005e09c: 0c017848 jal 0x0005e120 Get Unit's Portrait/Palette 0005e0a0: 00a08821 addu r17,r5,r0 r17 = Stack Pointer 0005e0a4: a202015f sb r2,0x015f(r16) Store Unit's Portrait 0005e0a8: 92230000 lbu r3,0x0000(r17) Load Palette 0005e0ac: 304200ff andi r2,r2,0x00ff r2 = Unit's Portrait 0005e0b0: a2030160 sb r3,0x0160(r16) Store Unit's Palette 0005e0b4: 8fbf0018 lw r31,0x0018(r29) 0005e0b8: 8fb10014 lw r17,0x0014(r29) 0005e0bc: 8fb00010 lw r16,0x0010(r29) 0005e0c0: 27bd0020 addiu r29,r29,0x0020 0005e0c4: 03e00008 jr r31 0005e0c8: 00000000 nop
Return Locations
BATTLE.BIN 0017f4a8: 0017f388 0017f9bc: 0017f8a0 0018c824: 0018c758 Exclusively a BATTLE.BIN routine, could be moved to that file.