HomePortalFAQSearchMemberlistUsergroupsRegisterLog inGallery

Share | 
 

 Hold Button DMA Joker Template

Go down 
AuthorMessage
Sniper7410
[108] Coder
[108] Coder


Country : U. S.
Posts : 137
Points : 151
Join date : 2010-06-13

PostSubject: 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
__________
Back to top Go down
View user profile
 
Hold Button DMA Joker Template
Back to top 
Page 1 of 1
 Similar topics
-
» No start fight button !?
» Hold Your Breath Game
» Looking for Joker figures
» Hot Toys, 1/6th scale batmobile tumbler.
» Hot Toys making Indiana Jones figures, hints at Star Wars as well...

Permissions in this forum:You cannot reply to topics in this forum
 :: Coding Section :: Coding Tutorials-
Jump to: