Difference between revisions of "Change of Turn check"
Jump to navigation
Jump to search
(Created page with " 00183d70: 27bdffe8 addiu r29,r29,0xffe8 00183d74: 000410c0 sll r2,r4,0x03 00183d78: 00441023 subu r2,r2,r4 00183d7c: 00021180 sll r2,r2,0x06 00183d80: 3c038019 lui r3,0x8...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 10: | Line 10: | ||
00183d94: 92030001 lbu r3,0x0001(r16) | 00183d94: 92030001 lbu r3,0x0001(r16) | ||
00183d98: 340200ff ori r2,r0,0x00ff | 00183d98: 340200ff ori r2,r0,0x00ff | ||
− | 00183d9c: 1062000b beq r3,r2,0x00183dcc | + | 00183d9c: 1062000b beq r3,r2,0x00183dcc. Unit exists check |
− | 00183da0: 34020001 ori r2,r0,0x0001 | + | 00183da0: 34020001 ori r2,r0,0x0001. Return r2=1 |
− | 00183da4: 0c060cb3 jal 0x001832cc | + | 00183da4: 0c060cb3 jal 0x001832cc status checks |
00183da8: 02002021 addu r4,r16,r0 | 00183da8: 02002021 addu r4,r16,r0 | ||
00183dac: 3042000d andi r2,r2,0x000d | 00183dac: 3042000d andi r2,r2,0x000d | ||
− | 00183db0: 10400003 beq r2,r0,0x00183dc0 | + | 00183db0: 10400003 beq r2,r0,0x00183dc0 |
00183db4: 34020001 ori r2,r0,0x0001 | 00183db4: 34020001 ori r2,r0,0x0001 | ||
00183db8: 08060f73 j 0x00183dcc | 00183db8: 08060f73 j 0x00183dcc | ||
− | 00183dbc: a2000186 sb r0,0x0186(r16) Store Characters turn | + | 00183dbc: a2000186 sb r0,0x0186(r16) Store Characters turn over |
00183dc0: 92020186 lbu r2,0x0186(r16) Load characters turn | 00183dc0: 92020186 lbu r2,0x0186(r16) Load characters turn | ||
00183dc4: 00000000 nop | 00183dc4: 00000000 nop | ||
− | 00183dc8: 2c420001 sltiu r2,r2,0x0001 | + | 00183dc8: 2c420001 sltiu r2,r2,0x0001. Set if turn over |
00183dcc: 8fbf0014 lw r31,0x0014(r29) | 00183dcc: 8fbf0014 lw r31,0x0014(r29) | ||
00183dd0: 8fb00010 lw r16,0x0010(r29) | 00183dd0: 8fb00010 lw r16,0x0010(r29) | ||
Line 27: | Line 27: | ||
00183dd8: 03e00008 jr r31 | 00183dd8: 03e00008 jr r31 | ||
00183ddc: 00000000 nop | 00183ddc: 00000000 nop | ||
+ | Returns r2=1 (turn over) | ||
+ | |||
+ | == Return Locations == | ||
+ | |||
+ | 00076318: | ||
+ | 0007824c: |
Latest revision as of 17:44, 27 November 2012
00183d70: 27bdffe8 addiu r29,r29,0xffe8 00183d74: 000410c0 sll r2,r4,0x03 00183d78: 00441023 subu r2,r2,r4 00183d7c: 00021180 sll r2,r2,0x06 00183d80: 3c038019 lui r3,0x8019 00183d84: 246308cc addiu r3,r3,0x08cc unit data pointer 00183d88: afb00010 sw r16,0x0010(r29) 00183d8c: 00438021 addu r16,r2,r3 00183d90: afbf0014 sw r31,0x0014(r29) 00183d94: 92030001 lbu r3,0x0001(r16) 00183d98: 340200ff ori r2,r0,0x00ff 00183d9c: 1062000b beq r3,r2,0x00183dcc. Unit exists check 00183da0: 34020001 ori r2,r0,0x0001. Return r2=1 00183da4: 0c060cb3 jal 0x001832cc status checks 00183da8: 02002021 addu r4,r16,r0 00183dac: 3042000d andi r2,r2,0x000d 00183db0: 10400003 beq r2,r0,0x00183dc0 00183db4: 34020001 ori r2,r0,0x0001 00183db8: 08060f73 j 0x00183dcc 00183dbc: a2000186 sb r0,0x0186(r16) Store Characters turn over 00183dc0: 92020186 lbu r2,0x0186(r16) Load characters turn 00183dc4: 00000000 nop 00183dc8: 2c420001 sltiu r2,r2,0x0001. Set if turn over 00183dcc: 8fbf0014 lw r31,0x0014(r29) 00183dd0: 8fb00010 lw r16,0x0010(r29) 00183dd4: 27bd0018 addiu r29,r29,0x0018 00183dd8: 03e00008 jr r31 00183ddc: 00000000 nop Returns r2=1 (turn over)
Return Locations
00076318: 0007824c: