Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Hide HUD and enable on Button press.
- Button values:
- BUTTON_C_RIGHT = 0x0001,
- BUTTON_C_LEFT = 0x0002,
- BUTTON_C_DOWN = 0x0004,
- BUTTON_C_UP = 0x0008,
- BUTTON_R = 0x0010,
- BUTTON_L = 0x0020,
- BUTTON_D_RIGHT = 0x0100,
- BUTTON_D_LEFT = 0x0200,
- BUTTON_D_DOWN = 0x0400,
- BUTTON_D_UP = 0x0800,
- BUTTON_START = 0x1000,
- BUTTON_Z = 0x2000,
- BUTTON_B = 0x4000,
- BUTTON_A = 0x8000
- Code originally made by Skelux. Please credit him if using the code.
- Ready to be assembled with CajeASM.
- */
- .org 0x9EB68
- LUI S1, 0x8034
- LB S1, 0xAFA1(S1)
- ADDIU S2, R0, 0x0010
- BNE S2, S1, 0x0009ED18
- NOP
- .org 0x9EDA0
- LUI S4, $8034
- LB S1, $AFA1 (S4)
- ANDI S2, S1, $0020 // Button Check for displaying HUD. (Button L)
- BEQ R0, S2, $0009EDEC
- LH S0, $001E (SP)
- JAL $002E3744
- LUI S3, $8033
- JAL $002E37A8
- LB S1, $AFDB (S4)
- JAL $002E380C
- ANDI S2, S1, $0020 // Button check, which plays sound. (Button L)
- BEQ R0, S2, $0009EDEC
- LUI A0, $701A
- ADDIU A1, S3, $3F10
- JAL $0031EB00
- ORI A0, A0, $8081
- NOP
- NOP
- NOP
- ANDI T9, S0, $0020
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement