|
PancakeNESEmu
A homebrewed NES Emulator written in C
|

Go to the source code of this file.
Functions | |
| memory | init_memory () |
| This function allocate on the heap a memory of exactly TOTAL_MEMORY_SIZE. | |
| void | reset_memory (memory mem) |
| This procedure set the entire memory to 0. | |
| void | free_memory (memory mem) |
| This procedure free the memory pointer. | |
| void | memory_mirroring (memory mem) |
| This procedure make the memory mirroring. | |
| void free_memory | ( | memory | mem | ) |
This procedure free the memory pointer.
| [in] | mem | The memory pointer |
Definition at line 25 of file mem.c.
References TOTAL_MEM_SIZE.
Referenced by free_cpu().

| memory init_memory | ( | ) |
This function allocate on the heap a memory of exactly TOTAL_MEMORY_SIZE.
Definition at line 7 of file mem.c.
References EXIT_FAILURE, and TOTAL_MEM_SIZE.
Referenced by main().

| void memory_mirroring | ( | memory | mem | ) |
This procedure make the memory mirroring.
| [in,out] | mem | The memory pointer |
Definition at line 29 of file mem.c.
References PPU_MIRRORS_START_FIVE, PPU_MIRRORS_START_FOUR, PPU_MIRRORS_START_ONE, PPU_MIRRORS_START_SEVEN, PPU_MIRRORS_START_SIX, PPU_MIRRORS_START_THREE, PPU_MIRRORS_START_TWO, PPU_MIRRORS_START_ZERO, PPU_REG_FIVE, PPU_REG_FOUR, PPU_REG_ONE, PPU_REG_SEVEN, PPU_REG_SIX, PPU_REG_THREE, PPU_REG_TWO, PPU_REG_ZERO, RAM_MIRROR_1_START, RAM_MIRROR_2_START, and RAM_MIRROR_3_START.
Referenced by step_cpu().

| void reset_memory | ( | memory | mem | ) |
This procedure set the entire memory to 0.
| [in,out] | mem | The memory pointer |
Definition at line 19 of file mem.c.
References TOTAL_MEM_SIZE.
Referenced by main().
