Free Codes and Mods!!!
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Free Codes and Mods!!!


 
HomeLatest imagesSearchRegisterLog in

 

 08 Codetype Tutorial

Go down 
AuthorMessage
$pacebound
Admin
Admin
$pacebound


Posts : 69
Points : 203
Rep : 0
Join date : 2012-01-15
Age : 26
Location : Elm Street

08 Codetype Tutorial Empty
PostSubject: 08 Codetype Tutorial   08 Codetype Tutorial I_icon_minitimeMon Jan 16, 2012 9:39 pm

Anytime you are writing the same value many times to different places in memory that are equally spaced apart you can use the 08 codetype to do a serial write.

For example the code method posted writes 0x40500000 to four different places in memory. The important thing to note is that the four different memory locations are all spaced by 0x1C88 bytes.

So instead of using 04 code type to say write this here, write this here, write this here, write this here
we can use the 08 codetype to say write this here, then write it again four times starting here and then every 0x1C88 bytes later.

08______ XXXXXXXX : 32bits serial code (ba)
2NNNZZZZ VVVVVVVV Writes NNN+1 words (XXXXXXXX) at ba+address, then makes XXXX+=VVVVVVVV, address+=ZZZZ

Code:

Speed Hack (All Players) [777eThOd*]:
04A1C754 40500000
04A1E3DC 40500000
04A20064 40500000
04A21CEC 40500000

Speed Hack (All Players) [777eThOd*]:
08A1C754 40500000
20031C88 00000000

Another way to say this:

you could make it a little shorter by using a 32 bit serial code, since all the values of off by 1C88 bytes.
08______ XXXXXXXX : 32bits serial code (ba)
2NNNZZZZ VVVVVVVV Writes NNN+1 words (XXXXXXXX) at ba+address, then makes XXXX+=VVVVVVVV, address+=ZZZZ

button activator
08A1C80C 0001046A
20031C88 00000000
full terminator

This is the first address and starting point for your writes
This is the value you want to write
This value should be one less than how many writes you want to do
This is the value that each address changes by
This is the amount that each value will change by, since you want everyone to have same amount of money this should be zero [no change]

I know it only reduces the code by 2 lines but if it were 10 players instead of 4 it would reduce the code by 8 lines.
Back to top Go down
https://goodcodes.forumotion.com
 
08 Codetype Tutorial
Back to top 
Page 1 of 1
 Similar topics
-
» 06 Codetype Tutorial

Permissions in this forum:You cannot reply to topics in this forum
Free Codes and Mods!!! :: Wii Section :: Wii Guides-
Jump to: