Jump to content

RAM: Difference between revisions

>Torchickens
No edit summary
>Bbbbbbbbba
(→‎Game Boy RAM: Nitpick)
 
(2 intermediate revisions by one other user not shown)
Line 4:
The RAM, like scratch paper is a database of writable variables in the game that are usually (except for SRAM) not kept when the game is powered off.
 
ExampleExamples of RAM addresses include the current level and species of a wild Pokémon in battle, the player's current coordinates, the current music data and so on.
 
The location of a RAM address in Game Boy games (like ROM addresses) are represented by two bytes, for example D059 in English Pokémon Red and Blue controls which Pokemon or Trainer will be encountered by the player.
Line 18:
 
*VRAM (8000-9FFF): Used for graphics data. VRAM is not always accessible and can return FFs or the wrong data if read during VRAM inaccessibility.
*[[Save data|SRAM]] (A000-BFFF): Used for the save filedata. SRAM is banked and can also be locked until a write to ROM is attempted.
*RAM (C000-CFFF): Used to store various in-game variables, such as the wild Pokémon in battle or a Pokémon's stats. This section of the RAM is unbanked.
*WRAM (D000-DFFF): An extension of RAM, banked. WRAM stands for working RAM.
*Echo RAM (E000-FDFF): Echo RAM is normally not meant to be used, but is a copy of the RAM at C000-DFFFDDFF. Modifying the RAM and WRAM will also modify the Echo RAM. Echo RAM is often abused in [[arbitrary code execution]].
*HRAM (FF80-FFFE): Stores hardware related variables. Also known as the zero page.
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.