Set Action Target Variables
Jump to navigation
Jump to search
# ROUTINE: SET ACTION TARGET VARIABLES # Parameters: # r4 = [Target unit data pointer] 0018da04: 27bdffe8 addiu r29,r29,0xffe8 0018da08: 2483018c addiu r3,r4,0x018c # Target action data pointer 0018da0c: afbf0010 sw r31,0x0010(r29) 0018da10: 3c018019 lui r1,0x8019 0018da14: ac242d98 sw r4,0x2d98(r1) # Set global variable at 0x80192d98 to target's data pointer 0018da18: 3c018019 lui r1,0x8019 0018da1c: ac232d90 sw r3,0x2d90(r1) # Set global variable at 0x80192d90 to target action's data pointer 0018da20: 9082018a lbu r2,0x018a(r4) # Unit ID (ENTD) 0018da24: 3c018019 lui r1,0x8019 0018da28: a02238c1 sb r2,0x38c1(r1) # Save Unit ID to 0x801938c1 0018da2c: 0c062f5d jal 0x0018bd74 # ROUTINE: Current Action Data Nulling 0018da30: 00602021 addu r4,r3,r0 # (Parameter r4 = [Target action]) 0018da34: 8fbf0010 lw r31,0x0010(r29) 0018da38: 27bd0018 addiu r29,r29,0x0018 0018da3c: 03e00008 jr r31 0018da40: 00000000 nop