diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-11-16 12:48:44 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-11-16 12:48:44 +0100 |
commit | c9cb051fae190acfc36813e4a23759fb9b9c3df3 (patch) | |
tree | fcd8c93cd5dc2a3272eac253b0291611e16ea13f /asm/segment.cpp | |
parent | 300219dc8519720a36525c7b40c6a327580fe0bd (diff) |
Implement hierarchical evaluation (WIP)
Diffstat (limited to 'asm/segment.cpp')
-rw-r--r-- | asm/segment.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/asm/segment.cpp b/asm/segment.cpp index d3050bb..9d439fd 100644 --- a/asm/segment.cpp +++ b/asm/segment.cpp @@ -9,6 +9,11 @@ using namespace std::string_literals; +void Segment::append(const std::vector<std::shared_ptr<Chunk>>& list) +{ + insert(end(), list.cbegin(), list.cend()); +} + size_t Segment::getAddressOfLabel(const std::string& label) { size_t address{0}; |