From 029e148c67555d431c9f82d6485bb0f3d970810f Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 18 Feb 2024 16:39:50 +0100 Subject: Make mem 1 byte larger --- src/ahoy/emulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 */ -- cgit v1.2.3