diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ahoy/emulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ahoy/emulator.c b/src/ahoy/emulator.c index 04816cf..c66776f 100644 --- a/src/ahoy/emulator.c +++ b/src/ahoy/emulator.c @@ -21,7 +21,7 @@ struct chip8 c8; static const char *filename; /* Preload font into memory */ -static uint8_t mem[MEM_TOTAL] = { +static uint8_t mem[MEM_TOTAL + 1] = { 0xF0, 0x90, 0x90, 0x90, 0xF0, /* 0 */ 0x20, 0x60, 0x20, 0x20, 0x70, /* 1 */ 0xF0, 0x10, 0xF0, 0x80, 0xF0, /* 2 */ |