From c9cb051fae190acfc36813e4a23759fb9b9c3df3 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Mon, 16 Nov 2020 12:48:44 +0100 Subject: Implement hierarchical evaluation (WIP) --- asm/segment.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'asm/segment.cpp') 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>& list) +{ + insert(end(), list.cbegin(), list.cend()); +} + size_t Segment::getAddressOfLabel(const std::string& label) { size_t address{0}; -- cgit v1.2.3