Sniper7410 [108] Coder
Country : Posts : 137 Points : 151 Join date : 2010-06-13
| Subject: Hold Button DMA Joker Template Wed Jun 23, 2010 4:04 pm | |
| - Quote :
- lui t0 $(Fist half of pointer)
lw t0 $(Second half of pointer)(t0) lui t1 $(First half of controller addy) lw t1 $(Second half of controller addy)(t1) ori t2 zero $(button value) beq t1 t2 $(To [lui t3 $(First half of on value)]) lui t3 $(First half of off value) ori t3 t3 $(Second half of off value) sw t3 $(Offsett)(t0) jr ra lui t3 $(First half of on value) ori t3 t3 $(Second half of on value) sw t3 $(Offsett)(t0) jr ra Template for joker if controller is a DMA - Quote :
- ui t0 $(Fist half of pointer)
lw t0 $(Second half of pointer)(t0) lui t1 $(First half of controller addy) lw t1 $(Second half of controller addy)(t1) lw t1 $(offset for controller)(t1) ori t2 zero $(button value) beq t1 t2 $(To [lui t3 $(First half of on value)]) lui t3 $(First half of off value) ori t3 t3 $(Second half of off value) sw t3 $(Offsett)(t0) jr ra lui t3 $(First half of on value) ori t3 t3 $(Second half of on value) sw t3 $(Offsett)(t0) jr ra __________ | |
|