diff options
Spasm can assemble programs on with the new instruction set (#47)
* Use checkout as-is, commit as-is
* Spasm can assemble programs based on the new instruction set
1 files changed, 1 insertions, 24 deletions
| -rw-r--r-- | spasm/src/asm/bytecode.hpp | 25 |
diff --git a/spasm/src/asm/bytecode.hpp b/spasm/src/asm/bytecode.hpp index c08da46..d249db8 100644 --- a/spasm/src/asm/bytecode.hpp +++ b/spasm/src/asm/bytecode.hpp @@ -14,30 +14,7 @@ class Bytecode_Stream { public: typedef unsigned char byte; - enum Opcode_t : byte - { - halt = 0, - push, - pop, - dup, - print, - read, - plus, - minus, - multiply, - divide, - modulus, - gotrue, - gofalse, - go, - call, - ret, - load, - store, - less, - lesseq - }; - + typedef byte Opcode_t; virtual ~Bytecode_Stream(); virtual void push_opcode(Opcode_t) = 0; |
