Color Unit Event Instruction
Jump to navigation
Jump to search
# ROUTINE: ColorUnit event instruction (not async) # Parameters: # r4 = Parameter struct data 801495e0: 27bdffd0 addiu r29,r29,-0x0030 801495e4: afb00028 sw r16,0x0028(r29) 801495e8: afbf002c sw r31,0x002c(r29) 801495ec: 0c05181e jal 0x80146078 # affectedUnits = Load Halfword (params.AffectedUnits); 801495f0: 00808021 addu r16,r4,r0 801495f4: 27a40018 addiu r4,r29,0x0018 801495f8: 27a5001c addiu r5,r29,0x001c 801495fc: 0c051e4a jal 0x80147928 80149600: a7a20018 sh r2,0x0018(r29) # affectedUnits 80149604: 1040001c beq r2,r0,0x80149678 80149608: 26100002 addiu r16,r16,0x0002 8014960c: afa00020 sw r0,0x0020(r29) 80149610: 27a40018 addiu r4,r29,0x0018 80149614: 27a50020 addiu r5,r29,0x0020 80149618: 0c051e6b jal 0x801479ac 8014961c: 27a6001c addiu r6,r29,0x001c 80149620: 1040000e beq r2,r0,0x8014965c 80149624: 00000000 nop 80149628: 82020002 lb r2,0x0002(r16) 8014962c: 92040000 lbu r4,0x0000(r16) 80149630: 92050004 lbu r5,0x0004(r16) 80149634: 97a60018 lhu r6,0x0018(r29) # affectedUnits 80149638: 82070001 lb r7,0x0001(r16) 8014963c: afa20010 sw r2,0x0010(r29) 80149640: 82020003 lb r2,0x0003(r16) 80149644: 0c024cf1 jal 0x800933c4 80149648: afa20014 sw r2,0x0014(r29) 8014964c: 8fa2001c lw r2,0x001c(r29) 80149650: 00000000 nop 80149654: 10400008 beq r2,r0,0x80149678 80149658: 00000000 nop 8014965c: 8fa20020 lw r2,0x0020(r29) 80149660: 00000000 nop 80149664: 24420001 addiu r2,r2,0x0001 80149668: afa20020 sw r2,0x0020(r29) 8014966c: 28420015 slti r2,r2,0x0015 80149670: 1440ffe8 bne r2,r0,0x80149614 80149674: 27a40018 addiu r4,r29,0x0018 80149678: 8fbf002c lw r31,0x002c(r29) 8014967c: 8fb00028 lw r16,0x0028(r29) 80149680: 27bd0030 addiu r29,r29,0x0030 80149684: 03e00008 jr r31 80149688: 00000000 nop