aboutsummaryrefslogtreecommitdiff
path: root/assembler.h
blob: f311a96a846cf1013e02057d4835d0ae518acf7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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