From 05a458782d5055b186ffea90027d3aff85a70440 Mon Sep 17 00:00:00 2001 From: Maxwell Jeffress Date: Thu, 16 Jul 2026 12:30:10 +1000 Subject: [PATCH 1/2] fix build file --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 274ab32..23328d7 100644 --- a/meson.build +++ b/meson.build @@ -15,4 +15,4 @@ asmSources = files( args = ['-Wall', '-Wextra'] executable('emu', sources, c_args: args) -execuatble('assembler', asmSources, c_args: args) +executable('assembler', asmSources, c_args: args) From 92f2cddb99e87c96d40bbc90c7b6eb33d7d64227 Mon Sep 17 00:00:00 2001 From: Maxwell Jeffress Date: Thu, 16 Jul 2026 12:31:29 +1000 Subject: [PATCH 2/2] inline -> static inline --- src/emu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/emu.c b/src/emu.c index 8560b59..8773835 100644 --- a/src/emu.c +++ b/src/emu.c @@ -1,12 +1,12 @@ #include "emu.h" -inline Instruction fetchInst(Emulator* emu) { +static inline Instruction fetchInst(Emulator* emu) { Instruction inst = decodeInstruction(emu->mem, &emu->pc); printf("%s\n", instructionToCStr(inst)); return inst; } -inline void updateFlagsRegister(Emulator* emu, int32_t value) { +static inline void updateFlagsRegister(Emulator* emu, int32_t value) { if (value == 0) { emu->regs[REG_F] = FLAG_ZERO; } else if (value < 0) { @@ -169,4 +169,4 @@ Emulator* initEmulator(uint32_t memorySize) { void freeEmulator(Emulator* emu) { freeMemory(emu->mem); free(emu); -} \ No newline at end of file +}