Compare commits

...

2 Commits

Author SHA1 Message Date
b7febd27ef Merge remote-tracking branch 'upstream/main' 2024-03-15 10:33:56 +01:00
Ry
b7b8099031 Allow movz to work properly when targeting memory 2024-02-23 23:45:18 -08:00

View File

@ -679,13 +679,13 @@ static void vm_target8(vm_t *vm, uint8_t prtype, uint8_t value, uint8_t offset)
VM_TARGET_BODY(vm_write8, (*vm_findlocal(vm, local) & 0xFFFFFF00) | (uint32_t) value, offset) VM_TARGET_BODY(vm_write8, (*vm_findlocal(vm, local) & 0xFFFFFF00) | (uint32_t) value, offset)
} }
static void vm_target8_zero(vm_t *vm, uint8_t prtype, uint8_t value, uint8_t offset) { static void vm_target8_zero(vm_t *vm, uint8_t prtype, uint8_t value, uint8_t offset) {
VM_TARGET_BODY(vm_write8, (uint32_t) value, offset) VM_TARGET_BODY(vm_write32, (uint32_t) value, offset)
} }
static void vm_target16(vm_t *vm, uint8_t prtype, uint16_t value, uint8_t offset) { static void vm_target16(vm_t *vm, uint8_t prtype, uint16_t value, uint8_t offset) {
VM_TARGET_BODY(vm_write16, (*vm_findlocal(vm, local) & 0xFFFF0000) | (uint32_t) value, offset) VM_TARGET_BODY(vm_write16, (*vm_findlocal(vm, local) & 0xFFFF0000) | (uint32_t) value, offset)
} }
static void vm_target16_zero(vm_t *vm, uint8_t prtype, uint16_t value, uint8_t offset) { static void vm_target16_zero(vm_t *vm, uint8_t prtype, uint16_t value, uint8_t offset) {
VM_TARGET_BODY(vm_write16, (uint32_t) value, offset) VM_TARGET_BODY(vm_write32, (uint32_t) value, offset)
} }
static void vm_target32(vm_t *vm, uint8_t prtype, uint32_t value, uint8_t offset) { static void vm_target32(vm_t *vm, uint8_t prtype, uint32_t value, uint8_t offset) {
VM_TARGET_BODY(vm_write32, value, offset) VM_TARGET_BODY(vm_write32, value, offset)