00142ca8 - 00142d28

From Final Fantasy Hacktics Wiki
Revision as of 21:22, 2 March 2022 by Orkney (talk | contribs)
Jump to navigation Jump to search
00142ca8: 3c038016 lui r3,0x8016            |
00142cac: 94635ff6 lhu r3,0x5ff6(r3)        |r3 = [0x80165ff6]
00142cb0: 34020002 ori r2,r0,0x0002         |r2 = 0x02
00142cb4: 1462001b bne r3,r2,0x00142d24     |#If [0x80165ff6] = 0x02 /Else branch to  END 
00142cb8: 00000000 nop                          |
00142cbc: 3c038017 lui r3,0x8017                |
00142cc0: 8c634038 lw r3,0x4038(r3)             |r3 = Currently running thread
00142cc4: 00000000 nop                          |
00142cc8: 10600016 beq r3,r0,0x00142d24         |#If There's a  running thread /Else branch to  END 
00142ccc: 00000000 nop                              | 
00142cd0: 3c028017 lui r2,0x8017                    |
00142cd4: 8c4297d0 lw r2,-0x6830(r2)                |r2 = [0x801697d0]
00142cd8: 00000000 nop                              |
00142cdc: 14400003 bne r2,r0,0x00142cec             |#if [0x801697d0] = 0x00
00142ce0: 00031280 sll r2,r3,0x0a                   |r2 = Thread ID * 0x400
00142ce4: 3c018017 lui r1,0x8017                        |
00142ce8: ac20d9b8 sw r0,-0x2648(r1)                    |Clear [8016d9b8]
00142cec: 3c018017 lui r1,0x8017                    |r1 = 0x80170000
00142cf0: 00220821 addu r1,r1,r2                    |r1 = 0x80170000 + Thread ID * 0x400
00142cf4: 8c2398b8 lw r3,-0x6748(r1)                |r3 = Current Thread Task ID *0x801698b8 = 0x8016986c + 0x4c
00142cf8: 34020001 ori r2,r0,0x0001                 |r2 = 0x01
00142cfc: 14620005 bne r3,r2,0x00142d14             |#If Task ID = 0x01
00142d00: 00000000 nop                                  |
00142d04: 3c028017 lui r2,0x8017                        |r2 = 0x80170000
00142d08: 8c42d9b4 lw r2,-0x264c(r2)                    |r2 = [0x8016d9b4]
00142d0c: 08050b47 j 0x00142d1c                         |>>jump preserving r2
00142d10: 00000000 nop                                  |
00142d14: 3c028017 lui r2,0x8017                    |Else (Task <> 0x01)
00142d18: 8c42d9b8 lw r2,-0x2648(r2)                    |r2 =  [8016d9b8]
00142d1c: 3c018017 lui r1,0x8017                        |
00142d20: ac2297d0 sw r2,-0x6830(r1)                |[0x801697d0] = r2
00142d24: 03e00008 jr r31                           |
00142d28: 00000000 nop                              |

Return location

Battle.bin
0014cb48: Some_event_data_setting_routine