Store Thread Function Parameters (WORLD.BIN)
Jump to navigation
Jump to search
# ROUTINE: STORE THREAD FUNCTION PARAMETERS (WORLD.BIN) # Parameters: # r4 = (threadID) Thread ID # r5 = (funcParam1) Function parameter 1 # r6 = (funcParam2) Function parameter 2 # r7 = (funcParam3) Function parameter 3 800fff08: 3c028015 lui r2,0x8015 800fff0c: 8c42327c lw r2,0x327c(r2) # Thread array base pointer 800fff10: 00042280 sll r4,r4,0x0a # threadID * sizeof(thread) 800fff14: 00822021 addu r4,r4,r2 # thread 800fff18: ac850000 sw r5,0x0000(r4) # thread.funcParam1 = funcParam1 800fff1c: ac860004 sw r6,0x0004(r4) # thread.funcParam2 = funcParam2 800fff20: 03e00008 jr r31 800fff24: ac870008 sw r7,0x0008(r4) # thread.funcParam3 = funcParam3