EV Hex Values
View Single Post
August 2nd, 2009, 09:49 AM
Join Date: Oct 2007
Another way to do this is to convert between hex and binary. Look at the pattern:
$01 = %00000001 1HP
$02 = %00000010 2HP
$03 = %00000011 3HP
$04 = %00000100 1Atk
$05 = %00000101 1Atk, 1HP
$06 = %00000110 1Atk, 2HP
See the pattern? HP uses the rightmost two bits, Attack uses the next two, and so on.
Byte 1 ......XX
Byte 1 ....XX..
Byte 1 ..XX....
Byte 1 XX......
Byte 2 ......XX
Byte 2 ....XX..
So if we want EVs of 1 HP, 2 Atk, 3 Def, 3 Spd, 2 Sp.Atk, and 1 Sp.Def:
1 in binary is 01
2 in binary is 10
3 in binary is 11
Therefore, our bytes would be 11111001 00000110, or F9 06. Compare it with the list—those bytes do indeed give the number of EVs we want.
If you want me, please contact me
If you want to hack Pokémon RBY or GSC, read, read, and read some more.
This has tons of valuable information.
Pokémon Red disassembly project
Rules that should be rethought:
Bad posts are bad posts, regardless of how many words are in them or how old the thread is.
Good posts are good posts, regardless of how old the thread is—and brevity is underrated.
View Public Profile
Send a private message to IIMarckus
Find all posts by IIMarckus
Find threads started by IIMarckus
Ignore Posts by IIMarckus