aboutsummaryrefslogtreecommitdiff
path: root/assembler.h
diff options
context:
space:
mode:
Diffstat (limited to 'assembler.h')
-rw-r--r--assembler.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/assembler.h b/assembler.h
new file mode 100644
index 0000000..f311a96
--- /dev/null
+++ b/assembler.h
@@ -0,0 +1,17 @@
+#ifndef ASSEMBLER_H
+#define ASSEMBLER_H
+
+#include "./lib.h"
+#include "./parser.h"
+
+void asm_setup_buffer(buffer_t **asm_buffer, const char *outname);
+void asm_translate_nodes(buffer_t **asm_buffer, struct PResult nodes,
+ const char *src_name);
+
+void asm_write(buffer_t **asm_buffer);
+int asm_assemble(const char *srcname, const char *objname);
+int asm_link(const char *objname, const char *outname);
+int asm_compile(buffer_t **asm_buffer, const char *objname,
+ const char *outname);
+
+#endif