diff options
Diffstat (limited to 'emu/memory.h')
-rw-r--r-- | emu/memory.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/emu/memory.h b/emu/memory.h index a0d45b9..00e0de6 100644 --- a/emu/memory.h +++ b/emu/memory.h @@ -4,6 +4,7 @@ #include "device.h" #include <stdint.h> +#include <stdbool.h> typedef enum memory_type_t { MEMORY_ROM = 1, @@ -20,7 +21,7 @@ typedef struct memory_t uint8_t *cell; } memory_t; -void memory_init( memory_t *memory, memory_type_t type, uint16_t addr, uint16_t size ); +void memory_init( memory_t *memory, memory_type_t type, uint16_t addr, uint16_t size, bool initialize ); void memory_load( memory_t *memory, const char *filename ); uint8_t memory_read( void *obj, uint16_t addr ); |