r16/asm/assembler.h

20 lines
585 B
C
Raw Permalink Normal View History

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>
#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
2024-04-25 19:40:09 +00:00
#define LEN(arr) ((int) (sizeof (arr) / sizeof (arr)[0]))
2024-04-24 12:02:18 +00:00
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);
uint16_t *CompileAsembly(AsmInstructionArray *assembly, AsmLabelArray *labels);
2024-04-22 13:05:10 +00:00
#endif