Would you like to react to this message? Create an account in a few clicks or log in to continue.



 
HomePortalSearchLatest imagesRegisterLog inGallery

 

 Hold Button DMA Joker Template

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


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

Hold Button DMA Joker Template Empty
PostSubject: Hold Button DMA Joker Template   Hold Button DMA Joker Template Icon_minitimeWed 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
 
Hold Button DMA Joker Template
Back to top 
Page 1 of 1
 Similar topics
-
» Simple Subroutine Template
» On and Off Joker Template
» Example Of a Simple Button FNC
» FaM Os and Joker
» Hold+ 4.0 aka PSP battery saver

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