From 4758c451713073be3d85ecfb62f6ba515dd1a31f Mon Sep 17 00:00:00 2001 From: jn Date: Fri, 27 Jan 2023 17:37:06 +0100 Subject: [PATCH] Fix skipping of CMP instructions --- src/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpu.c b/src/cpu.c index 6d0bb6d..ee11bf9 100644 --- a/src/cpu.c +++ b/src/cpu.c @@ -876,7 +876,7 @@ static void vm_skipparam(vm_t *vm, uint32_t size, uint8_t prtype) { } #define VM_IMPL_CMP(_size, _type, _vm_source) { \ - VM_PRELUDE_0(); \ + VM_PRELUDE_2(_size); \ _type a = _vm_source(vm, instr.source); \ _type b = _vm_source(vm, instr.target); \ _type x; \