Units of computing data: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
>Sherkel mNo edit summary |
>Sherkel (Merging) |
||
Line 19: | Line 19: | ||
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'''. |
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 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. |
|||
For this reason, knowing the above units is relevant for two Generation III glitches: |
|||
*The [[roaming Pokémon IV glitch]], where data is only written to the first byte of a roaming Pokémon's individual values when it is captured (in Generation III games other than Pokémon Emerald). |
|||
*The [[Generation III bit set glitch]], where bit 0 and 2 (+hex:05) or bit 6 (+hex:40) may be written to a Pokémon in the storage box when one of the aforementioned bits are not set. |
|||
[[Category:Terminology]] |
[[Category:Terminology]] |