stuff
This commit is contained in:
@@ -12,11 +12,16 @@ typedef enum : uint8_t {
|
||||
} InstructionOpcode;
|
||||
|
||||
typedef enum {
|
||||
// General purpose registers
|
||||
REG_A, REG_B, REG_C,
|
||||
|
||||
// Function arguments
|
||||
REG_X, REG_Y, REG_Z,
|
||||
|
||||
// Return value
|
||||
REG_R,
|
||||
|
||||
// Flags
|
||||
REG_F,
|
||||
|
||||
REG_MAX // all registers should come before this one, this is so we can
|
||||
@@ -41,4 +46,4 @@ extern const OperandType INSTRUCTION_OPERAND_TYPES[][3];
|
||||
|
||||
char* opcodeToCStr(InstructionOpcode opcode);
|
||||
char* instructionToCStr(Instruction inst);
|
||||
char* registerToCStr(Register reg);
|
||||
char* registerToCStr(Register reg);
|
||||
|
||||
Reference in New Issue
Block a user