r16/asm/asm_const.h

54 lines
823 B
C
Raw Normal View History

2024-04-22 13:05:10 +00:00
#ifndef ASM_ASM_CONST_H
#define ASM_ASM_CONST_H
#include "../emu/cpu_const.h"
#include <stdbool.h>
typedef struct
{
char label[64];
char instruction[4];
char arg1[64];
char arg2[64];
} AsmInstruction;
typedef struct
{
uint16_t length;
AsmInstruction *instruction;
} AsmInstructionArray;
typedef struct
{
CpuInstructions instruction;
ArgumentInfo arg1Info;
ArgumentInfo arg2Info;
uint16_t arg1;
uint16_t arg2;
} BinaryInstruction;
typedef struct
{
uint16_t length;
BinaryInstruction *instructions;
} BinaryInstructionArray;
2024-04-24 12:02:18 +00:00
typedef struct
{
uint16_t length;
uint16_t *values;
} BinaryDataValueArray;
2024-04-22 13:05:10 +00:00
typedef struct
{
char label[64];
uint16_t location;
} AsmLabel;
typedef struct
{
uint16_t length;
AsmLabel *labels;
} AsmLabelArray;
#endif