summaryrefslogtreecommitdiffhomepage
path: root/asm/segment.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-11-16 12:48:44 +0100
committerRoland Reichwein <mail@reichwein.it>2020-11-16 12:48:44 +0100
commitc9cb051fae190acfc36813e4a23759fb9b9c3df3 (patch)
treefcd8c93cd5dc2a3272eac253b0291611e16ea13f /asm/segment.cpp
parent300219dc8519720a36525c7b40c6a327580fe0bd (diff)
Implement hierarchical evaluation (WIP)
Diffstat (limited to 'asm/segment.cpp')
-rw-r--r--asm/segment.cpp5
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};