Got the start of encoding opcodes.
This commit is contained in:
@@ -25,5 +25,6 @@ extern Register registers[REGISTERCOUNT];
|
||||
int IsOpcode(const char*, TokenType*);
|
||||
int IsRegister(const char*, TokenType*);
|
||||
const Instruction* GetOpcodeDetails(TokenType);
|
||||
unsigned char GetInstructionMask(TokenType type, TokenClass parameterOneType);
|
||||
|
||||
#endif
|
||||
+1
-1
@@ -26,7 +26,7 @@ typedef enum {
|
||||
DB, ORG,
|
||||
//Opcodes
|
||||
COPY, ADD, SUB, JZ, INT, YLD, RET,
|
||||
CMP, NOP, IN, OUT,
|
||||
CMP, NOP, JMP, IN, OUT,
|
||||
//Registers
|
||||
R1, R2, R3, R4, R5, R6, R7, R8
|
||||
} TokenType;
|
||||
|
||||
Reference in New Issue
Block a user