Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @clear_unit_data_on_ko:
- addiu sp, sp, -8
- sw ra, 4(sp)
- lui t0, 0x8019
- lw a0, 0x2d98(t0) # Target
- nop
- lbu t2, 0x58(a0) # Load Current Statuses 1
- nop
- andi t2, t2, 0x20 # Check if unit is KOed
- sltiu t2, t2, 1 # Target not KOed?
- bne t2, zero, cudok_end # Return if so
- nop
- jal @clear_extra_unit_data
- nop
- cudok_end:
- lw ra, 4(sp)
- addiu sp, sp, 8
- jr ra
- nop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement