diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-02-18 16:39:50 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-02-18 16:39:50 +0100 |
commit | 029e148c67555d431c9f82d6485bb0f3d970810f (patch) | |
tree | 940091a84907c51fbaccadb75fd7334789519ef2 | |
parent | 31cefff66e7eee2921d346669d1f2c3c955de10e (diff) |
Make mem 1 byte larger
-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 */ |