From e734528c26ee1c81daef4889b84606c205d042c7 Mon Sep 17 00:00:00 2001 From: eiowlta Date: Thu, 20 Jul 2023 16:51:37 +0300 Subject: [PATCH] allow dst to be used to increment by 2, 4 or 8 --- src/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpu.c b/src/cpu.c index 6bea37c..7c69442 100644 --- a/src/cpu.c +++ b/src/cpu.c @@ -835,7 +835,7 @@ static void vm_skipparam(vm_t *vm, uint32_t size, uint8_t prtype) { VM_PRELUDE_1(_size); \ _type v = _vm_source_stay(vm, instr.source); \ _type x; \ - bool carry = _oper(v, 1, &x); \ + bool carry = _oper(v, 1 << instr.target, &x); \ _vm_target(vm, instr.source, x); \ vm->flag_carry = carry; \ vm->flag_zero = x == 0; \