From 8c9fd8871509a508e0994a300bd09a755232acd1 Mon Sep 17 00:00:00 2001 From: SamsonLib Date: Sat, 14 Jun 2025 17:22:30 +0200 Subject: [PATCH] Fixed bug with include and printf --- core/ARM/cpu.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/ARM/cpu.h b/core/ARM/cpu.h index c8fc3aa..64102c6 100644 --- a/core/ARM/cpu.h +++ b/core/ARM/cpu.h @@ -1,6 +1,7 @@ #ifndef CPU_H #define CPU_H #include +#include #include struct CPU { @@ -15,14 +16,14 @@ struct CPU { uint8_t read_byte(uint64_t addr) { if (addr >= MEM_SIZE) { - printf("%s out of bounds\n", addr); + printf("%ld out of bounds\n", addr); } return memory[addr]; } void write_byte(uint64_t addr, uint8_t byte) { if (addr >= MEM_SIZE) { - printf("%s out of bounds\n", addr); + printf("%ld out of bounds\n", addr); } memory[addr] = byte; }