Event Instruction 0x44: Draw
Jump to navigation
Jump to search
# {44} Draw # case 0x44: 001455d8: 00132400 sll r4,r19,0x10 001455dc: 0c04cc56 jal 0x00133158 # miscID = Get misc ID (param_UnitID); 001455e0: 00042403 sra r4,r4,0x10 001455e4: 00021400 sll r2,r2,0x10 001455e8: 00028403 sra r16,r2,0x10 001455ec: 340807d0 ori r8,r0,0x07d0 001455f0: 1208024c beq r16,r8,0x00145f24 # if (miscID == 0x7d0) break; 001455f4: 00000000 nop 001455f8: 0c02344e jal 0x0008d138 # ? 0x8d138 (miscID); // I think this is the draw routine 001455fc: 02002021 addu r4,r16,r0 00145600: 0c04ed64 jal 0x0013b590 # scriptVariable = Get Script Variable (0x27); 00145604: 34040027 ori r4,r0,0x0027 00145608: 3403018c ori r3,r0,0x018c 0014560c: 14430245 bne r2,r3,0x00145f24 # if (scriptVariable != 0x18c) break; 00145610: 00000000 nop 00145614: 0c023374 jal 0x0008cdd0 # result = ? 0x8cdd0 (miscID); 00145618: 02002021 addu r4,r16,r0 0014561c: 00402021 addu r4,r2,r0 00145620: 34050001 ori r5,r0,0x0001 00145624: 0c052122 jal 0x00148488 # ? 0x148488 (result, 1); 00145628: 00000000 nop 0014562c: 3c028009 lui r2,0x8009 00145630: 2442bde4 addiu r2,r2,-0x421c 00145634: 3c018017 lui r1,0x8017 00145638: ac223ca8 sw r2,0x3ca8(r1) # *0x80173ca8 = 0x8008bd34; 0014563c: 0c0533ad jal 0x0014ceb4 # Call Inner Subroutine (miscID); 00145640: 02002021 addu r4,r16,r0 00145644: 080517c9 j 0x00145f24 # break; 00145648: 00000000 nop