Showing the changes to src/include (2 of 4 files). Show all
Unified · Split
| @@ -7,10 +7,12 @@ · 6 unmodified lines | |||
| 7 | #ifndef _DISVM_SRC_INCLUDE_OPCODES_H_ | 7 | #ifndef _DISVM_SRC_INCLUDE_OPCODES_H_ |
| 8 | #define _DISVM_SRC_INCLUDE_OPCODES_H_ | 8 | #define _DISVM_SRC_INCLUDE_OPCODES_H_ |
| 9 | 9 | ||
| 10 | #include <cstdint> | ||
| 11 | |||
| 10 | namespace disvm | 12 | namespace disvm |
| 11 | { | 13 | { |
| 12 | // Instruction codes for the Dis VM | 14 | // Instruction codes for the Dis VM |
| 13 | enum class opcode_t | 15 | enum class opcode_t : uint8_t |
| 14 | { | 16 | { |
| 15 | invalid = 0, | 17 | invalid = 0, |
| 16 | alt, | 18 | alt, |
| @@ -69,6 +69,7 @@ namespace disvm · 68 unmodified lines | |||
| 69 | { | 69 | { |
| 70 | std::shared_ptr<vm_module_t> module; | 70 | std::shared_ptr<vm_module_t> module; |
| 71 | vm_pc_t pc; | 71 | vm_pc_t pc; |
| 72 | opcode_t original_opcode; | ||
| 72 | }; | 73 | }; |
| 73 | 74 | ||
| 74 | // VM tool controller | 75 | // VM tool controller |