diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-10-17 17:54:20 +0200 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-10-17 17:54:20 +0200 |
commit | 72ff79d76c7ec16ea1b95c72af0838f0e1150735 (patch) | |
tree | 88cd1f3aaf7138c685d89df470ccf7613eae4716 /asm/assembler.h | |
parent | 7b49d17f90f26394a116348befb5edcdffcedcb6 (diff) |
Handle Labels and Data
Diffstat (limited to 'asm/assembler.h')
-rw-r--r-- | asm/assembler.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/asm/assembler.h b/asm/assembler.h index 42b5f8d..ddea4af 100644 --- a/asm/assembler.h +++ b/asm/assembler.h @@ -1,7 +1,6 @@ #pragma once -//#include "chunk.h" -//#include "segment.h" +#include "chunk.h" #include <any> #include <functional> @@ -23,6 +22,9 @@ std::shared_ptr<Op> makeOp(const std::string& mnemonic, AsmArgs& args); // overload for empty list of arguments std::shared_ptr<Op> makeOp(const std::string& mnemonic); +std::shared_ptr<Label> makeLabel(const std::string& name); +std::shared_ptr<Data> makeData(const std::vector<uint8_t>& data); + template<typename T> std::string mangleNameOne(const std::string& s) { |