Status checks

From Final Fantasy Hacktics Wiki
Revision as of 15:19, 8 February 2015 by Choto (talk | contribs) (Created page with "<font face='Courier New'> 001832cc: 27bdffe8 addiu r29,r29,0xffe8 001832d0: afb00010 sw r16,0x0010(r29) 001832d4: 00808021 addu r16,r4,r0 001832d8: afbf0014 sw r31,0x001...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

001832cc: 27bdffe8 addiu r29,r29,0xffe8
001832d0: afb00010 sw r16,0x0010(r29)
001832d4: 00808021 addu r16,r4,r0
001832d8: afbf0014 sw r31,0x0014(r29)
001832dc: 92030001 lbu r3,0x0001(r16)			load unit ID
001832e0: 340200ff ori r2,r0,0x00ff
001832e4: 1062000a beq r3,r2,0x00183310			unit exists check
001832e8: 02002021 addu r4,r16,r0
001832ec: 0c01786c jal 0x0005e1b0				check status, return 0x01 if status found
001832f0: 34050003 ori r5,r0,0x0003
001832f4: 1440001a bne r2,r0,0x00183360			branch if status found
001832f8: 34020001 ori r2,r0,0x0001
001832fc: 92020182 lbu r2,0x0182(r16)			load mount info
00183300: 00000000 nop
00183304: 30420040 andi r2,r2,0x0040
00183308: 10400003 beq r2,r0,0x00183318			branch if not being ridden
0018330c: 00000000 nop
00183310: 08060cd8 j 0x00183360
00183314: 34020001 ori r2,r0,0x0001
00183318: 92020058 lbu r2,0x0058(r16)					
0018331c: 9205005b lbu r5,0x005b(r16)
00183320: 9204005c lbu r4,0x005c(r16)
00183324: 30420020 andi r2,r2,0x0020
00183328: 1440000d bne r2,r0,0x00183360			branch if dead
0018332c: 34020006 ori r2,r0,0x0006				return 0x06
00183330: 30820010 andi r2,r4,0x0010			sleep check
00183334: 0002102b sltu r2,r0,r2				
00183338: 00021023 subu r2,r0,r2
0018333c: 3043000a andi r3,r2,0x000a			
00183340: 30a20008 andi r2,r5,0x0008
00183344: 10400002 beq r2,r0,0x00183350			branch if not haste
00183348: 30a20004 andi r2,r5,0x0004
0018334c: 34630010 ori r3,r3,0x0010
00183350: 10400003 beq r2,r0,0x00183360			branch if not slow
00183354: 00601021 addu r2,r3,r0
00183358: 34630020 ori r3,r3,0x0020
0018335c: 00601021 addu r2,r3,r0				return r3
00183360: 8fbf0014 lw r31,0x0014(r29)
00183364: 8fb00010 lw r16,0x0010(r29)
00183368: 27bd0018 addiu r29,r29,0x0018
0018336c: 03e00008 jr r31
00183370: 00000000 nop