Jump to content

Hexadecimal: Difference between revisions

no edit summary
>Torchickens
No edit summary
 
Line 14:
In relation to Pokémon glitches, hexadecimal values are used for memory addresses, hex editors and [[cheating device]]s, such as the GameShark.
 
For example, the code 011559D0 is the instant encounter code for Mew in ''Pokémon Red and Blue''. The third and fourth digits are for the value, and the fifth-eighth digits are for the address that the code changes (in little endian). 15 here is a hexadecimal value, which when converted to decimal is 21; Mew's index number. 59D0 is also a hexadecimal value. The fact that it uses the digit 'D' is a hint.
 
When someone wants to show that a value is in hexadecimal, they can put the prefix "0x" or "$" before it, or the letter "h" after it. For example, "0x15", "$15" or "15h" means 15 in hexadecimal.
 
On rare occasions, a hexadecimal value may represent a value in 'human representation', meaning it is managed as a decimal value. This is the case for money values in [[bp:Generation I|Generation I]]. The player's current money is stored in memory addresses D347-D349 in ''Pokémon Red and Blue'' or D346-D348 in ''Pokémon Yellow''. This is problematic for values that do not show something in decimal, such as 0D, which represents the number 0 and a 'glitch digit'.
 
==Converting from hexadecimal to decimal==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.