aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-10-15 21:27:45 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-10-15 21:27:45 +0100
commitf73604ba6e141ccb4bd5c9b0783cd6128656ed31 (patch)
tree59e75368e7b17b7985a70c01a6aad17c67508228 /src/main.c
parentf513e90f001f1957d5ae5baba102a0b7b611dcfb (diff)
downloadovm-f73604ba6e141ccb4bd5c9b0783cd6128656ed31.tar.gz
ovm-f73604ba6e141ccb4bd5c9b0783cd6128656ed31.tar.bz2
ovm-f73604ba6e141ccb4bd5c9b0783cd6128656ed31.zip
Make error TODOs specific to routine (for vm_mov_*)
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 8033844..e8925f2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -131,7 +131,7 @@ void vm_mov_byte(vm_t *vm, data_t b, word reg)
void vm_mov_word(vm_t *vm, data_t w, word reg)
{
if (reg >= VM_WORD_REGISTERS)
- // TODO: Error (reg is not a valid byte register)
+ // TODO: Error (reg is not a valid word register)
return;
vm->registers.w[reg] = w.as_word;
}
@@ -139,7 +139,7 @@ void vm_mov_word(vm_t *vm, data_t w, word reg)
void vm_mov_float(vm_t *vm, data_t f, word reg)
{
if (reg >= VM_FLOAT_REGISTERS)
- // TODO: Error (reg is not a valid byte register)
+ // TODO: Error (reg is not a valid float register)
return;
vm->registers.f[reg] = f.as_float;
}