aboutsummaryrefslogtreecommitdiff
path: root/vm/runtime.c
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-10-23 01:43:24 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-10-23 01:43:24 +0100
commit2ef104f2358af14339ff632f3457bbb9dbf56d92 (patch)
tree3f57a106d7739d63d75ee8d7fdd2b98cc500eba5 /vm/runtime.c
parent20030e364cd869e5651b2e2fb63cfb8881fbf5b7 (diff)
downloadovm-2ef104f2358af14339ff632f3457bbb9dbf56d92.tar.gz
ovm-2ef104f2358af14339ff632f3457bbb9dbf56d92.tar.bz2
ovm-2ef104f2358af14339ff632f3457bbb9dbf56d92.zip
Fixed bug in vm_mov(byte|hword) where registers aren't set properly
This is because we just OR the bits into the specific byte of the word. This means the previous state may leave artefacts as the OR doesn't clear the bits away. To do so, we apply a bit mask to clear the specified byte(s) of the word, then perform the OR.
Diffstat (limited to 'vm/runtime.c')
0 files changed, 0 insertions, 0 deletions