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.cpp | |
parent | 7b49d17f90f26394a116348befb5edcdffcedcb6 (diff) |
Handle Labels and Data
Diffstat (limited to 'asm/assembler.cpp')
-rw-r--r-- | asm/assembler.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/asm/assembler.cpp b/asm/assembler.cpp index 7a9f6cf..d6ab230 100644 --- a/asm/assembler.cpp +++ b/asm/assembler.cpp @@ -49,3 +49,13 @@ std::shared_ptr<Op> makeOp(const std::string& mnemonic) AsmArgs dummy; // empty list of arguments return makeOp(mnemonic, dummy); } + +std::shared_ptr<Label> makeLabel(const std::string& name) +{ + return std::make_shared<Label>(name); +} + +std::shared_ptr<Data> makeData(const std::vector<uint8_t>& data) +{ + return std::make_shared<Data>(data); +} |