From 15ce7787713eab58f5f20da1972dc9a699d46daf Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sun, 15 Oct 2023 22:05:59 +0100 Subject: Set register parameter for inst_t to be a byte We at most have 255 registers, so no need to have a word for it. --- src/inst.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/inst.h b/src/inst.h index b071047..7e0d8b4 100644 --- a/src/inst.h +++ b/src/inst.h @@ -48,7 +48,7 @@ typedef struct { opcode_t opcode; data_t operand; - word reg; + byte reg; // At most 255 registers } inst_t; #define INST_BPUSH(BYTE) \ -- cgit v1.2.3-13-gbd6f