starting work on assembler

This commit is contained in:
SpookyDervish
2025-12-21 09:44:16 +11:00
parent b1ff26bcbb
commit e92f097afe
16 changed files with 315 additions and 29 deletions

18
src/asm/instructions.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef INSTRUCTIONS_H
#define INSTRUCTIONS_H
#define MAX_ARGS 3
typedef enum
{
ARG_TYPE_INT
} ArgType;
typedef struct
{
char *mnemonic,
uint8_t argCount,
ArgType args[MAX_ARGS]
} InstructionInfo;
#endif // !INSTRUCTIONS_H