HomePortalFAQSearchMemberlistUsergroupsRegisterLog inGallery

Share | 
 

 Hold Button DMA Joker Template

View previous topic View next topic 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 6: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

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» The Change button?
» Javascript Favorites Button
» ISF Recruitment Hold
» Ban Rejection Template
» Human Template

Permissions in this forum:You cannot reply to topics in this forum
 :: Coding Section :: Coding Tutorials-
Free forums | © phpBB | Free forum support | Contact | Report an abuse | Free forums