Transfer Unit Coordinates to AI
Jump to navigation
Jump to search
0019f2a4: 000410c0 sll r2,r4,0x03 ID * 8 0019f2a8: 00441023 subu r2,r2,r4 ID * 7 0019f2ac: 00021180 sll r2,r2,0x06 ID * 448 0019f2b0: 3c018019 lui r1,0x8019 0019f2b4: 00220821 addu r1,r1,r2 0019f2b8: 90230913 lbu r3,0x0913(r1) Load Unit's X Coordinate 0019f2bc: 00000000 nop 0019f2c0: a0a30000 sb r3,0x0000(r5) Store X Coordinate 0019f2c4: 3c018019 lui r1,0x8019 0019f2c8: 00220821 addu r1,r1,r2 0019f2cc: 90230914 lbu r3,0x0914(r1) Load Unit's Y Coordinate 0019f2d0: 00000000 nop 0019f2d4: a0a30002 sb r3,0x0002(r5) Store Y Coordinate 0019f2d8: 3c018019 lui r1,0x8019 0019f2dc: 00220821 addu r1,r1,r2 0019f2e0: 94220914 lhu r2,0x0914(r1) Load Unit's Y Coordinate + Map Level 0019f2e4: a0a00003 sb r0,0x0003(r5) Store ? = 0 0019f2e8: 000213c2 srl r2,r2,0x0f Get Map Level 0019f2ec: 03e00008 jr r31 0019f2f0: a0a20001 sb r2,0x0001(r5) Store Map Level