Website Summary Files Commits Branches @commit @diff @stats
path: root / spasm / src / asm / bytecode.hpp
diff options
context:
space:
mode:
Commit72d9bbcc3154142af79fb686d9dc7e4d1fa1badb (patch)
Author
 dtrendafilov <trendafilov.dn@gmail.com>
2018-11-29 09:13:12 +0200
Committer
 GitHub <noreply@github.com>
2018-11-29 09:13:12 +0200
Files3cea4377cba9370f3f2248557f82831d617d89d1 /spasm/src/asm/bytecode.hpp
IPL-72d9bbcc3154142af79fb686d9dc7e4d1fa1badb.tar
IPL-72d9bbcc3154142af79fb686d9dc7e4d1fa1badb.tar.gz
IPL-72d9bbcc3154142af79fb686d9dc7e4d1fa1badb.zip
Parentcdfd42d72030a031e5c5d810fcd53441902b5cff (diff)
Feature/strings (#75)
* The assembler supports string opcode * disabled the string test until implmented * strings can be printed
1 files changed, 2 insertions, 0 deletions
-rw-r--r--spasm/src/asm/bytecode.hpp2
diff --git a/spasm/src/asm/bytecode.hpp b/spasm/src/asm/bytecode.hpp
index fb80122..7d0d838 100644
--- a/spasm/src/asm/bytecode.hpp
+++ b/spasm/src/asm/bytecode.hpp
@@ -21,6 +21,7 @@ class Bytecode_Stream
virtual void push_integer(int64_t, int size) = 0;
virtual void push_double(double) = 0;
virtual void push_location(size_t) = 0;
+ virtual void push_string(const char* s, size_t length, int size) = 0;
virtual void set_location(size_t, size_t) = 0;
virtual size_t size() const = 0;
}; // class Bytecode_Stream
@@ -51,6 +52,7 @@ class Bytecode_Memory : public Bytecode_Stream
virtual void push_double(double) override;
virtual void push_location(size_t);
virtual void set_location(size_t, size_t);
+ virtual void push_string(const char* s, size_t length, int size) override;
virtual size_t size() const;
typedef std::vector<Bytecode_Stream::byte> Bytecode;