Difference between revisions of "00142ca8 - 00142d28"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with "<font face='Courier New'> 00142ca8: 3c038016 lui r3,0x8016 00142cac: 94635ff6 lhu r3,0x5ff6(r3) 00142cb0: 34020002 ori r2,r0,0x0002 00142cb4: 1462001b bne r3,r2,0x00142d...")
 
m
Line 1: Line 1:
<font face='Courier New'>
+
  00142ca8: 3c038016 lui r3,0x8016           |
+
  00142cac: 94635ff6 lhu r3,0x5ff6(r3)       |{{f/std|<nowiki>r3 = [0x80165ff6]</nowiki>}}
  00142ca8: 3c038016 lui r3,0x8016
+
  00142cb0: 34020002 ori r2,r0,0x0002         |{{f/std|<nowiki>r2 = 0x02</nowiki>}}
  00142cac: 94635ff6 lhu r3,0x5ff6(r3)
+
  00142cb4: 1462001b bne r3,r2,0x00142d24     |{{f/Cond|<nowiki>If [0x80165ff6] = 0x02</nowiki>}} /Else branch to {{f/loc| END }}
  00142cb0: 34020002 ori r2,r0,0x0002
+
  00142cb8: 00000000 nop                         |
  00142cb4: 1462001b bne r3,r2,0x00142d24
+
  00142cbc: 3c038017 lui r3,0x8017               |
  00142cb8: 00000000 nop
+
  00142cc0: 8c634038 lw r3,0x4038(r3)             |{{f/adr|<nowiki>r3 = Currently running thread</nowiki>}}
  00142cbc: 3c038017 lui r3,0x8017
+
  00142cc4: 00000000 nop                         |
  00142cc0: 8c634038 lw r3,0x4038(r3)
+
  00142cc8: 10600016 beq r3,r0,0x00142d24         |{{f/Cond|If There's a  running thread}} /Else branch to {{f/loc| END }}
  00142cc4: 00000000 nop
+
  00142ccc: 00000000 nop                             |{{f/std| }}
  00142cc8: 10600016 beq r3,r0,0x00142d24
+
  00142cd0: 3c028017 lui r2,0x8017                   |
  00142ccc: 00000000 nop
+
  00142cd4: 8c4297d0 lw r2,-0x6830(r2)               |{{f/adr|<nowiki>r2 = [0x801697d0]</nowiki>}}
  00142cd0: 3c028017 lui r2,0x8017
+
  00142cd8: 00000000 nop                             |
  00142cd4: 8c4297d0 lw r2,-0x6830(r2)
+
  00142cdc: 14400003 bne r2,r0,0x00142cec             |{{f/Cond|<nowiki>if [0x801697d0] = 0x00</nowiki>}}
  00142cd8: 00000000 nop
+
  00142ce0: 00031280 sll r2,r3,0x0a                   |{{f/std|<nowiki>r2 = Thread ID * 0x400</nowiki>}}
  00142cdc: 14400003 bne r2,r0,0x00142cec
+
  00142ce4: 3c018017 lui r1,0x8017                       |{{f/std|}}
  00142ce0: 00031280 sll r2,r3,0x0a
+
  00142ce8: ac20d9b8 sw r0,-0x2648(r1)                   |{{f/store|Clear [8016d9b8]}}
  00142ce4: 3c018017 lui r1,0x8017
+
  00142cec: 3c018017 lui r1,0x8017                   |{{f/std|<nowiki>r1 = 0x80170000</nowiki>}}
  00142ce8: ac20d9b8 sw r0,-0x2648(r1)
+
  00142cf0: 00220821 addu r1,r1,r2                   |{{f/std|<nowiki>r1 = 0x80170000 + Thread ID * 0x400</nowiki>}}
  00142cec: 3c018017 lui r1,0x8017
+
  00142cf4: 8c2398b8 lw r3,-0x6748(r1)               |{{f/adr|<nowiki>r3 = Current Thread Task ID</nowiki>}} {{f/std|<nowiki>*0x801698b8 = 0x8016986c + 0x4c</nowiki>}}
  00142cf0: 00220821 addu r1,r1,r2
+
  00142cf8: 34020001 ori r2,r0,0x0001                 |{{f/std|<nowiki>r2 = 0x01</nowiki>}}
  00142cf4: 8c2398b8 lw r3,-0x6748(r1)
+
  00142cfc: 14620005 bne r3,r2,0x00142d14             |{{f/Cond|<nowiki>If Task ID = 0x01</nowiki>}}
  00142cf8: 34020001 ori r2,r0,0x0001
+
  00142d00: 00000000 nop                                 |
  00142cfc: 14620005 bne r3,r2,0x00142d14
+
  00142d04: 3c028017 lui r2,0x8017                       |{{f/std|<nowiki>r2 = 0x80170000</nowiki>}}
  00142d00: 00000000 nop
+
  00142d08: 8c42d9b4 lw r2,-0x264c(r2)                   |{{f/adr|<nowiki>r2 = [0x8016d9b4]</nowiki>}}
  00142d04: 3c028017 lui r2,0x8017
+
  00142d0c: 08050b47 j 0x00142d1c                         |{{f/jump|jump preserving r2}}
  00142d08: 8c42d9b4 lw r2,-0x264c(r2)
+
  00142d10: 00000000 nop                                 |
  00142d0c: 08050b47 j 0x00142d1c
+
  00142d14: 3c028017 lui r2,0x8017                   |{{f/std|Else (Task <> 0x01)}}
  00142d10: 00000000 nop
+
  00142d18: 8c42d9b8 lw r2,-0x2648(r2)                   |{{f/adr|<nowiki>r2 =  [8016d9b8]</nowiki>}}
  00142d14: 3c028017 lui r2,0x8017
+
  00142d1c: 3c018017 lui r1,0x8017                       |
  00142d18: 8c42d9b8 lw r2,-0x2648(r2)
+
  00142d20: ac2297d0 sw r2,-0x6830(r1)               |{{f/store|<nowiki>[0x801697d0] = r2</nowiki>}}
  00142d1c: 3c018017 lui r1,0x8017
+
  00142d24: 03e00008 jr r31                           |
  00142d20: ac2297d0 sw r2,-0x6830(r1)
+
  00142d28: 00000000 nop                             |
  00142d24: 03e00008 jr r31
+
=== Return location ===
  00142d28: 00000000 nop
+
'''Battle.bin'''
</font>
+
0014cb48: [[Some_event_data_setting_routine]]

Revision as of 21:22, 2 March 2022

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