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