00093654 - 000937f4
Jump to navigation
Jump to search
plays sound effect 0x71 when triangle is pressed while it's an ai's turn?
00093654: 27bdffe8 addiu r29,r29,0xffe8 00093658: afbf0010 sw r31,0x0010(r29) 0009365c: 0c0076d6 jal 0x0001db58 00093660: 34040001 ori r4,r0,0x0001 00093664: 3c018004 lui r1,0x8004 00093668: ac225944 sw r2,0x5944(r1) 0009366c: 0c04ed64 jal 0x0013b590 00093670: 340401fc ori r4,r0,0x01fc 00093674: 10400005 beq r2,r0,0x0009368c 00093678: 00000000 nop 0009367c: 3c048004 lui r4,0x8004 00093680: 24845944 addiu r4,r4,0x5944 00093684: 0c050b4b jal 0x00142d2c 00093688: 00000000 nop 0009368c: 3c028004 lui r2,0x8004 00093690: 8c42594c lw r2,0x594c(r2) 00093694: 3c038004 lui r3,0x8004 00093698: 8c635948 lw r3,0x5948(r3) 0009369c: 3c048004 lui r4,0x8004 000936a0: 8c845944 lw r4,0x5944(r4) 000936a4: 3c018004 lui r1,0x8004 000936a8: ac225964 sw r2,0x5964(r1) 000936ac: 3c018004 lui r1,0x8004 000936b0: ac225968 sw r2,0x5968(r1) 000936b4: 3c018004 lui r1,0x8004 000936b8: ac22596c sw r2,0x596c(r1) 000936bc: 3c018004 lui r1,0x8004 000936c0: ac225970 sw r2,0x5970(r1) 000936c4: 00031027 nor r2,r0,r3 000936c8: 00441024 and r2,r2,r4 000936cc: 3c018004 lui r1,0x8004 000936d0: ac22594c sw r2,0x594c(r1) 000936d4: 00041027 nor r2,r0,r4 000936d8: 00431024 and r2,r2,r3 000936dc: 3c018004 lui r1,0x8004 000936e0: ac235954 sw r3,0x5954(r1) 000936e4: 3c018004 lui r1,0x8004 000936e8: ac235958 sw r3,0x5958(r1) 000936ec: 3c018004 lui r1,0x8004 000936f0: ac23595c sw r3,0x595c(r1) 000936f4: 3c018004 lui r1,0x8004 000936f8: ac235960 sw r3,0x5960(r1) 000936fc: 3c018004 lui r1,0x8004 00093700: ac225950 sw r2,0x5950(r1) 00093704: 14640009 bne r3,r4,0x0009372c 00093708: 00000000 nop 0009370c: 3c028004 lui r2,0x8004 00093710: 8c425974 lw r2,0x5974(r2) 00093714: 00000000 nop 00093718: 24420001 addiu r2,r2,0x0001 0009371c: 3c018004 lui r1,0x8004 00093720: ac225974 sw r2,0x5974(r1) 00093724: 08024dcd j 0x00093734 00093728: 00000000 nop
Plays sound effect 0x71 if conditions are met?
0009372c: 3c018004 lui r1,0x8004 00093730: ac205974 sw r0,0x5974(r1) 00093734: 3c028004 lui r2,0x8004 00093738: 8c42594c lw r2,0x594c(r2) # load controller input 0009373c: 3c038004 lui r3,0x8004 00093740: 8c635944 lw r3,0x5944(r3) # load controller input 00093744: 30420010 andi r2,r2,0x0010 # check if triangle is pressed 00093748: 3c018004 lui r1,0x8004 0009374c: ac235948 sw r3,0x5948(r1) # store controller input into controller input 00093750: 1040001c beq r2,r0,0x000937c4 # branch if not 00093754: 34020034 ori r2,r0,0x0034 00093758: 3c038009 lui r3,0x8009 0009375c: 8c6360e4 lw r3,0x60e4(r3) # load current game state 00093760: 00000000 nop 00093764: 10620017 beq r3,r2,0x000937c4 # don't play 0x71 if game state = 0x34? (get back to this) 00093768: 00000000 nop 0009376c: 0c01e886 jal 0x0007a218 00093770: 00000000 nop 00093774: 3c03800e lui r3,0x800e 00093778: 8c634e8c lw r3,0x4e8c(r3) # undocumented 0009377c: 00000000 nop 00093780: 10600010 beq r3,r0,0x000937c4 00093784: 00402021 addu r4,r2,r0 00093788: 3c028009 lui r2,0x8009 0009378c: 8c4260f8 lw r2,0x60f8(r2) # load whether or not this routine has played before 00093790: 00000000 nop 00093794: 1440000b bne r2,r0,0x000937c4 # skip if it has 00093798: 00000000 nop 0009379c: 9082013d lbu r2,0x013d(r4) # load entd flags 000937a0: 00000000 nop 000937a4: 30420008 andi r2,r2,0x0008 # is current unit player controlled? 000937a8: 14400006 bne r2,r0,0x000937c4 000937ac: 00000000 nop 000937b0: 0c010ffe jal 0x00043ff8 # play 0x71 if not 000937b4: 34040071 ori r4,r0,0x0071 000937b8: 34020001 ori r2,r0,0x0001 000937bc: 3c018009 lui r1,0x8009 000937c0: ac2260f8 sw r2,0x60f8(r1) # store "has requested status menu" so this doesn't happen again 000937c4: 3c028004 lui r2,0x8004 000937c8: 8c425948 lw r2,0x5948(r2) 000937cc: 3403090c ori r3,r0,0x090c 000937d0: 3042090c andi r2,r2,0x090c 000937d4: 14430004 bne r2,r3,0x000937e8 000937d8: 34020001 ori r2,r0,0x0001 000937dc: 0c01025d jal 0x00040974 000937e0: 00000000 nop 000937e4: 34020001 ori r2,r0,0x0001 000937e8: 8fbf0010 lw r31,0x0010(r29) 000937ec: 27bd0018 addiu r29,r29,0x0018 000937f0: 03e00008 jr r31 000937f4: 00000000 nop