Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-10-15 | Remove parameter for INST_*POP | Aryadev Chavali | |
POP instructions do not require an operand: they're a unary operator. | |||
2023-10-15 | Set register parameter for inst_t to be a byte | Aryadev Chavali | |
We at most have 255 registers, so no need to have a word for it. | |||
2023-10-15 | Renamed opcodes PUSH_*REG to PUSH_*_REGISTER | Aryadev Chavali | |
More precise in naming | |||
2023-10-15 | Rearranged opcodes (switched mov with push_reg) | Aryadev Chavali | |
This is so push opcodes are closer together | |||
2023-10-15 | Added instructions to push register values onto the stack | Aryadev Chavali | |
2023-10-15 | Added instructions for popping differing types | Aryadev Chavali | |
Bit mask is 100. | |||
2023-10-15 | Added opcodes for MOV and ability for instructions to hold registers | Aryadev Chavali | |
Pretty simple implementation | |||
2023-10-15 | Make push opcodes a specific bit set and add a NOOP opcode | Aryadev Chavali | |
By default, a zero initialised set of instructions are NOOPs, which is great. Last two bits of a push opcode is always 01. Rest of the bits are used to distinguish between differing types of push. This makes it easier to inspect on the byte level what type of opcode we have. | |||
2023-10-15 | Split off instruction structure to its own file | Aryadev Chavali | |