allow dst to be used to increment by 2, 4 or 8

This commit is contained in:
eiowlta 2023-07-20 16:51:37 +03:00
parent 4bedaa9028
commit e734528c26

View File

@ -835,7 +835,7 @@ static void vm_skipparam(vm_t *vm, uint32_t size, uint8_t prtype) {
VM_PRELUDE_1(_size); \ VM_PRELUDE_1(_size); \
_type v = _vm_source_stay(vm, instr.source); \ _type v = _vm_source_stay(vm, instr.source); \
_type x; \ _type x; \
bool carry = _oper(v, 1, &x); \ bool carry = _oper(v, 1 << instr.target, &x); \
_vm_target(vm, instr.source, x); \ _vm_target(vm, instr.source, x); \
vm->flag_carry = carry; \ vm->flag_carry = carry; \
vm->flag_zero = x == 0; \ vm->flag_zero = x == 0; \