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.
This commit is contained in:
@@ -48,7 +48,7 @@ typedef struct
|
|||||||
{
|
{
|
||||||
opcode_t opcode;
|
opcode_t opcode;
|
||||||
data_t operand;
|
data_t operand;
|
||||||
word reg;
|
byte reg; // At most 255 registers
|
||||||
} inst_t;
|
} inst_t;
|
||||||
|
|
||||||
#define INST_BPUSH(BYTE) \
|
#define INST_BPUSH(BYTE) \
|
||||||
|
|||||||
Reference in New Issue
Block a user