aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-10-15 22:06:30 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-10-15 22:06:30 +0100
commit1cb54dc9949f80ce1bc8c54a806ebea920c70ec5 (patch)
tree29a1e6363fca0dd081d25d31370be505be5f96f9
parent15ce7787713eab58f5f20da1972dc9a699d46daf (diff)
downloadovm-1cb54dc9949f80ce1bc8c54a806ebea920c70ec5.tar.gz
ovm-1cb54dc9949f80ce1bc8c54a806ebea920c70ec5.tar.bz2
ovm-1cb54dc9949f80ce1bc8c54a806ebea920c70ec5.zip
Remove parameter for INST_*POP
POP instructions do not require an operand: they're a unary operator.
-rw-r--r--src/inst.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/inst.h b/src/inst.h
index 7e0d8b4..d8feb09 100644
--- a/src/inst.h
+++ b/src/inst.h
@@ -69,14 +69,11 @@ typedef struct
#define INST_FMOV(FLOAT, REG) \
((inst_t){.opcode = OP_MOV_FLOAT, .operand = DFLOAT(FLOAT), .reg = (REG)})
-#define INST_BPOP(BYTE) \
- ((inst_t){.opcode = OP_POP_BYTE, .operand = DBYTE(BYTE)})
+#define INST_BPOP ((inst_t){.opcode = OP_POP_BYTE})
-#define INST_WPOP(WORD) \
- ((inst_t){.opcode = OP_POP_WORD, .operand = DWORD(WORD)})
+#define INST_WPOP ((inst_t){.opcode = OP_POP_WORD})
-#define INST_FPOP(FLOAT) \
- ((inst_t){.opcode = OP_POP_FLOAT, .operand = DFLOAT(FLOAT)})
+#define INST_FPOP ((inst_t){.opcode = OP_POP_FLOAT})
#define INST_BPUSH_REG(REG) \
((inst_t){.opcode = OP_PUSH_BYTE_REGISTER, .reg = (REG)})