starting work on assembler
This commit is contained in:
18
src/asm/instructions.h
Normal file
18
src/asm/instructions.h
Normal 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
|
||||
Reference in New Issue
Block a user