aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-10-15 22:05:59 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-10-15 22:05:59 +0100
commit15ce7787713eab58f5f20da1972dc9a699d46daf (patch)
treec8aedb9a5d73d282ae25b0f85c878f1878a42beb /src
parentc24c1d160702f227cede324999bb5fbd15c7f312 (diff)
downloadovm-15ce7787713eab58f5f20da1972dc9a699d46daf.tar.gz
ovm-15ce7787713eab58f5f20da1972dc9a699d46daf.tar.bz2
ovm-15ce7787713eab58f5f20da1972dc9a699d46daf.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/inst.h2
1 files changed, 1 insertions, 1 deletions
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) \