Difference between revisions of "Initialize Unit's X/Y+Facing/Battle Rewards"
Jump to navigation
Jump to search
(Created page with " Initialize Unit's X/Y+Facing/Battle Rewards 0005e478: 90a20019 lbu r2,0x0019(r5) Load ENTD X Coordinate 0005e47c: 00000000 nop 0005e480: a0820047 sb r2,0x0047(r4) Store ...") |
|||
Line 28: | Line 28: | ||
0005e4e0: 03e00008 jr r31 | 0005e4e0: 03e00008 jr r31 | ||
0005e4e4: a0820164 sb r2,0x0164(r4) Store Unit's Gil | 0005e4e4: a0820164 sb r2,0x0164(r4) Store Unit's Gil | ||
+ | |||
+ | |||
+ | == Return locations == | ||
+ | |||
+ | 0017fa54: | ||
+ | 0017fa6c: |
Latest revision as of 02:52, 2 March 2012
Initialize Unit's X/Y+Facing/Battle Rewards 0005e478: 90a20019 lbu r2,0x0019(r5) Load ENTD X Coordinate 0005e47c: 00000000 nop 0005e480: a0820047 sb r2,0x0047(r4) Store Unit's X Coordinate 0005e484: 90a2001a lbu r2,0x001a(r5) Load ENTD Y Coordinate 0005e488: 00000000 nop 0005e48c: a0820048 sb r2,0x0048(r4) Store Unit's Y Coordinate 0005e490: 94a3001a lhu r3,0x001a(r5) Load ENTD Y Coordinate + Facing 0005e494: 94820048 lhu r2,0x0048(r4) Load Unit's Y Coordinate + Facing 0005e498: 30638000 andi r3,r3,0x8000 ENTD Higher Elevation Flag 0005e49c: 30427fff andi r2,r2,0x7fff Remove Unit's Higher Elevation Flag 0005e4a0: 00431025 or r2,r2,r3 0005e4a4: a4820048 sh r2,0x0048(r4) Store Unit's new Y Coordinate + Facing 0005e4a8: 94a3001a lhu r3,0x001a(r5) Load ENTD Y Coordinate + Facing 0005e4ac: 3042f0ff andi r2,r2,0xf0ff Remove Unit's Facing Flags 0005e4b0: 30630300 andi r3,r3,0x0300 ENTD Facing Flags 0005e4b4: 00431025 or r2,r2,r3 0005e4b8: a4820048 sh r2,0x0048(r4) Store Unit's new Y Coordinate + Facing 0005e4bc: 94a3001a lhu r3,0x001a(r5) Load ENTD Y Coordinate + Facing 0005e4c0: 3042cfff andi r2,r2,0xcfff Remove Unit's ? Flags 0005e4c4: 30633000 andi r3,r3,0x3000 ENTD's ? Flags 0005e4c8: 00431025 or r2,r2,r3 0005e4cc: a4820048 sh r2,0x0048(r4) Store Unit's new Y Coordinate + Facing 0005e4d0: 90a2001e lbu r2,0x001e(r5) Load ENTD War Trophy 0005e4d4: 00000000 nop 0005e4d8: a0820163 sb r2,0x0163(r4) Store Unit's War Trophy 0005e4dc: 90a2001f lbu r2,0x001f(r5) Load ENTD Gil 0005e4e0: 03e00008 jr r31 0005e4e4: a0820164 sb r2,0x0164(r4) Store Unit's Gil
Return locations
0017fa54: 0017fa6c: