summaryrefslogtreecommitdiffhomepage
path: root/asm/segment.cpp
diff options
context:
space:
mode:
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};