summaryrefslogtreecommitdiffhomepage
path: root/asm/segment.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-10-17 14:16:46 +0200
committerRoland Reichwein <mail@reichwein.it>2020-10-17 14:16:46 +0200
commitf86999e137f43372236f2dccd1fe3572a85c0dcd (patch)
treefedfeec810d22dde57073c5b51ecf1a4253a9c61 /asm/segment.h
parent85e9768c6a083165ef8376d2924f5d82ce91d118 (diff)
Separate-out assembler
Diffstat (limited to 'asm/segment.h')
-rw-r--r--asm/segment.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/asm/segment.h b/asm/segment.h
new file mode 100644
index 0000000..1c080d3
--- /dev/null
+++ b/asm/segment.h
@@ -0,0 +1,15 @@
+#pragma once
+
+#include "chunk.h"
+
+#include <exception>
+#include <memory>
+#include <string>
+#include <vector>
+
+class Segment: public std::vector<std::shared_ptr<Chunk>>
+{
+ size_t getAddressOfLabel(const std::string& label);
+};
+
+