From f73604ba6e141ccb4bd5c9b0783cd6128656ed31 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sun, 15 Oct 2023 21:27:45 +0100 Subject: Make error TODOs specific to routine (for vm_mov_*) --- src/main.c | 4 ++-- 1 file 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; } -- cgit v1.2.3-13-gbd6f