PSP Coding


 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in

Share | 
 

 2 Templates For Beginners by DragonZero

Go down 
AuthorMessage
DragonZero



Posts : 13
Points : 34
Reputation : 0
Join date : 2010-09-29

PostSubject: 2 Templates For Beginners by DragonZero   Mon Oct 04, 2010 8:53 am

I'm not a fan of templates, but I wanna help some people here with jokering so I write very fast 2 usefull templates for beginners. Hope it helped.

4 Addresses Joker Template by DragonZero

lui t0 $first half controller address +0880
lw t0 $second half controller address(t0)
addiu t1 zero $button activate code 1
addiu t2 zero $button activate code 2
addiu t3 zero $button activate code 3
addiu t4 zero $button activate code 4
bne t0 t1 $branch the next BNE
nop
lui t5 $first half code address +0880
lui t6 $first half code value
addiu t6 t6 $second half code value
sw t6 $second half code address(t5)
bne t0 t2 $branch the next BNE
nop
lui t5 $first half code address +0880
lui t6 $first half code value
addiu t6 t6 $second half code value
sw t6 $second half code address(t5)
bne t0 t3 $branch the next BNE
nop
lui t5 $first half code address +0880
lui t6 $first half code value
addiu t6 t6 $second half code value
sw t6 $second half code address(t5)
bne t0 t4 $branch the Jr Ra
nop
lui t5 $first half code address +0880
lui t6 $first half code value
addiu t6 t6 $second half code value
sw t6 $second half code address(t5)
Jr Ra

Inc/dec Joker Template by DragonZero

lui t0 $first half controller address
lw t0 $second half controller address(t0)
lui t1 $first half code address
addiu t2 zero $button to increase the address value
addiu t3 zero $button to decrease the address value
bne t0 t2 $branch the next BNE
nop
lw t4 $second half code address(t1)
lui t5 $first half increase value
addiu t5 t5 $second half increase value
add t6 t4 t5
sw t6 $second half code address(t1)
bne t0 t3 $branch the Jr Ra
nop
lw t4 $second half code address(t1)
lui t5 $first half decrease value
addiu t5 t5 $second half decrease value
sub t6 t4 t5
sw t6 $second half code address(t1)
Jr Ra
Back to top Go down
View user profile
SXYxJeff

avatar

Posts : 47
Points : 55
Reputation : 0
Join date : 2010-09-29

PostSubject: Re: 2 Templates For Beginners by DragonZero   Mon Oct 04, 2010 8:36 pm

nice i am really trying to stop using templates but they are a good thing to refer to if you need help, imo
Back to top Go down
View user profile
 
2 Templates For Beginners by DragonZero
Back to top 
Page 1 of 1
 Similar topics
-
» RUST's Beginners Guide & Tips and Tricks
» Neuer beginner Clan Apocalyptic Vendetta!
» Arena - beginners question

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