content search

Codebreaker Code Types

in article > Faqs: Gameboy Advanced

Code Type Format
Description

Code Type 0 = game ID/setup parameters
Code Type 1 = enable code hook address + type
Code Type 2 = OR type

Code Type 3 -Bit code
3AAAAAAA 00YY
8 bit constant write. This only writes the value of YY into the address provided.
value is between 00-FF


Code Type 4= Slide code
This is an advanced code type you can use to write multiple values with.
4AAAAAAA YYYY
MMMMCCCC IIII

4AAAAAAA= The Starting address
YYYY= Value
MMMM= Value increment
CCCC= Address Count. Writes the value the amount of times provided.
IIII= how many adresses to skip (Only Even Numbers!)



Code Type 5 - memwrite
5xxxxxxx yyyy
zzzzzzzz zzzz

xxxxxxx= first address to write to
yyyy= number of halfwords to write.
zzzz= halfwords

The halfword must be written in a 'byte ordering' way,
which mean you have to switch the lower byte and the upper byte.

Example
82029318 8151
8202931A 907B
8202931C 112F
8202931E 0000
82029318 8151
8202931A 907B

will become
52029318 0006
51817B90 2F11
00005181 7B90

This allow you to divide the numbers of lines by 3 !
If you still dont see how its done then just reverse the values starting with the starting address
51 81 7b 90 2f 11
00 00 51 81 7b 90

51817b90 2f11
00005181 7b90



Code Type 6 - Is the same as type 2, but it "AND"s the value instead of "OR"

Code Type 7 - like PSX "D0" code type "Equal To"
If half-word value in location supplied is the same as value supplied do the next code. This code is useful if you only want to execute certain codes at certain points in the game (like on certain levels, or only when the game has fully loaded).
(Address MUST BE EVEN!)

Example:
7008030C 01FE
80100204 0067

If the address 08030C holds the half-word value 01FE then do the code 80100204 0067, otherwise do nothing.


Code Type 8 - 16 Bit Codes
XXXXXX = Address
YYYY = 16-Bit Value

It simply writes the given 16 bit value, YYYY, to the given address, XXXXXX.
Like YuGiOh! Health Codes


Code Type 9 = decrypt type


Code Type A = like PSX's D1 code type "Not Equal To"
XXXXXX = Address
YYYY = 16-Bit Value

If half-word value in location supplied is different to the value supplied do the next code.
(Must be EVEN Address!)

Example:
A008030C 01FE
80100204 0067

If the address 08030C doesn't hold the half-word value 01FE then do the code 80100204 0067, otherwise do nothing.


Code Type B = like PSX's D3 "if Greater Than"
XXXXXX = Address
YYYY = 16-Bit Value

If half-word value in location supplied is greater than the value supplied do the next code.
(address must be EVEN!)

Example:
B008030C 01FE
80100204 0067

If the address 08030C is greater than the half-word value 01FE then do the code 80100204 0067, otherwise do nothing.



Code Type C - like PSX's D2 "if Lesser Than"
XXXXXX = Address
YYYY = 16-Bit Value

If half-word value in location supplied is less than the value supplied do the next code.
(Must be EVEN address!)

Example:
C008030C 01FE
80100204 0067

If the address 08030C is less than the half-word value 01FE then do the code 80100204 0067, otherwise do nothing.


Code Type D = PAD read

Code Type E- increment/decrement
Exxxxxxx yyyy
0000 - 7FFF = increment
8000 - FFFF = decrement for yyyy

Fxxxxxxx yyyy = likes like PSX D0 except use uses "&" instead of "is equal to" checks 1 bit

Need to check PSX CodeTypes? Click Here
All trademarks are copyright their respective owners, all other content is copyright Codemasters Project
Date / Time
 
Select Theme


Google AdSense
Online
Guests: 1
Team Members: 0
Team Login
Username:

Password:


Remember me

[ Forgot password? ]
Render time: 0.1293 second(s); 0.0580 of that for queries. DB queries: 160. Memory Usage: 1mb