Website Summary Files Commits Branches @commit @diff @stats
path: root / spasm / src / asm / bytecode.cpp
diff options
context:
space:
mode:
1 files changed, 6 insertions, 0 deletions
-rw-r--r--spasm/src/asm/bytecode.cpp6
diff --git a/spasm/src/asm/bytecode.cpp b/spasm/src/asm/bytecode.cpp
index cc250ba..70e16c9 100644
--- a/spasm/src/asm/bytecode.cpp
+++ b/spasm/src/asm/bytecode.cpp
@@ -100,6 +100,12 @@ void Bytecode_Memory::push_location(size_t location)
}
}
+void Bytecode_Memory::push_string(const char* s, size_t length, int size)
+{
+ push_integer(int64_t(length), size);
+ _bytecode.insert(_bytecode.end(), s, s + length);
+}
+
const Bytecode_Memory::Bytecode& Bytecode_Memory::bytecode() const
{
return _bytecode;