2024-04-22 13:05:10 +00:00
|
|
|
#ifndef ASM_ASSEMBLER_H
|
|
|
|
#define ASM_ASSEMBLER_H
|
|
|
|
|
2024-04-24 12:02:18 +00:00
|
|
|
#include <stdbool.h>
|
2024-04-25 09:47:01 +00:00
|
|
|
#include <stdint.h>
|
2024-04-24 12:02:18 +00:00
|
|
|
#include "asm_const.h"
|
2024-04-22 13:05:10 +00:00
|
|
|
|
2024-04-24 12:02:18 +00:00
|
|
|
#define ARRAY_SNAP_SIZE 32
|
|
|
|
|
|
|
|
char *FindNextChar(char *data, char toFind, bool careAboutNull);
|
|
|
|
char *FindNextNonSpaceChar(char *data, bool careAboutNull);
|
|
|
|
char *FindNextSpaceChar(char *data, bool careAboutNull);
|
|
|
|
|
|
|
|
AsmInstructionArray *InterpretAssembly(char *data);
|
|
|
|
AsmLabelArray *GenerateLabels(AsmInstructionArray *assembly);
|
2024-04-25 09:47:01 +00:00
|
|
|
uint16_t *CompileAsembly(AsmInstructionArray *assembly, AsmLabelArray *labels);
|
2024-04-22 13:05:10 +00:00
|
|
|
|
|
|
|
#endif
|