Jump to content

Units of computing data: Difference between revisions

m
no edit summary
>Sherkel
(Merging)
>Sherkel
mNo edit summary
Line 14:
In the Pokémon games, the smallest groups of [[identifiers]] can only be read by the console in single 8-bit bytes. This explains, for example, the reason why there are 105 glitch Pokémon in Generation I: 2^8 is 256, and 256 - 151 = 105.
 
Bytes are also sometimes read as arrays of bits, in other words an ordered list of eight "ons" and "offs", used for instance when storing the badges the player has obtained in {{RBY}}, or Pokédex flags.
 
==Words==
 
The size of a '''word''' depends on the type of hardware. On 32-bit processors, such as that of the Game Boy Advance, the size of a word is four bytes (or 32 bits). A unit of two bytes in this architecture is referred to as a '''halfword''', and a unit of eight a '''double word''' or '''dword'''.
 
In all main-series Pokémon games after [[bp:Generation II|Generation II]], Pokémon species identifiers are stored as words. Hence, there are 65150, 65043 and 64887 invalid identifiers representing '[[glitch Pokémon]]' in [[bp:Generation III|Generation III]] (which has 386 valid Pokémon), [[bp:Generation IV|Generation IV]] (which has 493 valid Pokémon) and [[bp:Generation V|Generation V]] (which has 649 valid Pokémon) main series Pokémon games respectively.
 
In Generation III, the personality value (or PID) of a Pokémon is stored as a dword in the Pokémon data substructure, and the individual values of a Pokémon are stored in the last 15 bits of a word in the Pokémon data substructure.
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.