diff options
| author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-10-15 21:27:00 +0100 | 
|---|---|---|
| committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-10-15 21:27:00 +0100 | 
| commit | 744cc7acf78e99775b037d7a7b3e0d193ce410ff (patch) | |
| tree | aba0b2b9ec21ecacefcbf995ac08fe96b4ca0842 /src | |
| parent | 4ae762294d7bc638bb46c13426bf3d077ac31e53 (diff) | |
| download | ovm-744cc7acf78e99775b037d7a7b3e0d193ce410ff.tar.gz ovm-744cc7acf78e99775b037d7a7b3e0d193ce410ff.tar.bz2 ovm-744cc7acf78e99775b037d7a7b3e0d193ce410ff.zip  | |
Renamed opcodes PUSH_*REG to PUSH_*_REGISTER
More precise in naming
Diffstat (limited to 'src')
| -rw-r--r-- | src/inst.h | 15 | 
1 files changed, 9 insertions, 6 deletions
@@ -24,9 +24,9 @@ typedef enum    OP_PUSH_WORD  = 0b00000101,    OP_PUSH_FLOAT = 0b00001001,    // 0b0010 -  OP_PUSH_BREG = 0b00000010, -  OP_PUSH_WREG = 0b00000110, -  OP_PUSH_FREG = 0b00001010, +  OP_PUSH_BYTE_REGISTER  = 0b00000010, +  OP_PUSH_WORD_REGISTER  = 0b00000110, +  OP_PUSH_FLOAT_REGISTER = 0b00001010,    // 0b0100    OP_POP_BYTE  = 0b00000100,    OP_POP_WORD  = 0b00001100, @@ -78,10 +78,13 @@ typedef struct  #define INST_FPOP(FLOAT) \    ((inst_t){.opcode = OP_POP_FLOAT, .operand = DFLOAT(FLOAT)}) -#define INST_BPUSH_REG(REG) ((inst_t){.opcode = OP_PUSH_BREG, .reg = (REG)}) +#define INST_BPUSH_REG(REG) \ +  ((inst_t){.opcode = OP_PUSH_BYTE_REGISTER, .reg = (REG)}) -#define INST_WPUSH_REG(REG) ((inst_t){.opcode = OP_PUSH_WREG, .reg = (REG)}) +#define INST_WPUSH_REG(REG) \ +  ((inst_t){.opcode = OP_PUSH_WORD_REGISTER, .reg = (REG)}) -#define INST_FPUSH_REG(REG) ((inst_t){.opcode = OP_PUSH_FREG, .reg = (REG)}) +#define INST_FPUSH_REG(REG) \ +  ((inst_t){.opcode = OP_PUSH_FLOAT_REGISTER, .reg = (REG)})  #endif  | 
