PancakeNESEmu
A homebrewed NES Emulator written in C
Loading...
Searching...
No Matches
mem.h
Go to the documentation of this file.
1#ifndef mem_h
2#define mem_h
3
4#include "core/types.h"
5
6typedef data* memory;
7
13
18void reset_memory(memory mem);
19
24void free_memory(memory mem);
25
30void memory_mirroring(memory mem);
31
32#endif // !mem_h
data * memory
Definition mem.h:6
void free_memory(memory mem)
This procedure free the memory pointer.
Definition mem.c:25
void reset_memory(memory mem)
This procedure set the entire memory to 0.
Definition mem.c:19
memory init_memory()
This function allocate on the heap a memory of exactly TOTAL_MEMORY_SIZE.
Definition mem.c:7
void memory_mirroring(memory mem)
This procedure make the memory mirroring.
Definition mem.c:29
byte data
Definition of the data format used by the CPU.
Definition types.h:11