Please Register or Login -By Tension

Please Donate 10$ to help NRU and get VIP Access:
www.NooBzAreUs.niceboard.org/Donate.forum
"Help the site be better and have a /.net !!"

We have True Slot Freeze,WiFi Boot,Server Boot,God Menus, and more!


Where N00BS become L33T!
 
HomePortalCalendarGalleryFAQSearchMemberlistUsergroupsRegisterLog in
Latest topics
» No Recoil/Perfect Shot
Fri Sep 30, 2011 2:09 pm by CjZaZy.ReApEr

» ><>shot kills<><
Fri Sep 30, 2011 2:08 pm by CjZaZy.ReApEr

» ><>Boucing shyt<><
Fri Sep 30, 2011 2:07 pm by CjZaZy.ReApEr

» lock on/ throw shyt
Fri Sep 30, 2011 2:06 pm by CjZaZy.ReApEr

» SUPPESR 1/2 EVERY GUN
Fri Sep 30, 2011 2:06 pm by CjZaZy.ReApEr

» Every thing on your gun
Fri Sep 30, 2011 2:05 pm by CjZaZy.ReApEr

» Always 32x Zoom Range
Fri Sep 30, 2011 2:05 pm by CjZaZy.ReApEr

» Lockon Distance Primary
Fri Sep 30, 2011 2:03 pm by CjZaZy.ReApEr

» Knife Freeze []
Fri Sep 30, 2011 2:01 pm by CjZaZy.ReApEr

Affiliates
www.FTB2Krazy.tk
 
Top posters
Tension
 
CHIV3S
 
looneyhead
 
TyrantHunTer15
 
CjZaZy.ReApEr
 
-FtB2..KrAzY-
 
SocomGuy99
 
WeeZyxBaBy
 
IIvIIr.L0VE
 
ARMY-OF-HELL
 
Statistics
We have 33 registered users
The newest registered user is panban

Our users have posted a total of 433 messages in 241 subjects

Share | 
 

 How to Inc/Dec via Buttons

Go down 
AuthorMessage
Tension
Admin & 1337
Admin & 1337
avatar

Posts : 234
Join date : 2009-08-17

PostSubject: How to Inc/Dec via Buttons   Mon Sep 21, 2009 9:18 pm

Credit: Warlock

Code:


 
lui t0, $(First four of the controller address)
lui t1, $(First four code address +0880)
lh t2, $(Second four controller address)(t0)
addiu t3, zero, $(Increase Button)
bne t2, t3, $(Address of the next bne)
lw t4, $(Second four code address)(t1)
nop
addiu t5, zero, $(Increment rate I use 0020)   
add t6, t4, t5
sw t6, $(Second four code address)(t1)
beq zero, zero, $(Address of the jr ra)
addiu t4, zero, $(Decrease Button)
bne t2, t4, $(Address of the the jr ra)
lw t5, $(Second four code address)(t1)
nop
addiu t6, zero, $(Decrement rate I use 0020)
sub t7, t5, t6
sw t7, $Second four code address(t1)
nop
Jr ra

And of course you need a hook
Back to top Go down
View user profile http://nruretiredforum.forumotion.com
 
How to Inc/Dec via Buttons
Back to top 
Page 1 of 1
 Similar topics
-
» Siggys / Buttons for the Club!

Permissions in this forum:You cannot reply to topics in this forum
 :: Tutorial Center :: PSP Turorials-
Jump to: