aboutsummaryrefslogtreecommitdiff
path: root/assembler.h
blob: e6b2eb24e68efc110b2ea660f805b3cb8e98a32f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef ASSEMBLER_H
#define ASSEMBLER_H

#include "./lib.h"
#include "./parser.h"

void asm_translate_nodes(vec_t *asm_buffer, struct PResult nodes,
                         const char *src_name);

void asm_write(const char *asm_name, vec_t *asm_buffer);
int asm_assemble(const char *asm_name, const char *objname);
int asm_link(const char *objname, const char *outname);
int asm_compile(vec_t *asm_buffer, const char *asm_name, const char *objname,
                const char *outname);

#endif