Added a disassembler which is still very buggy. Also fixed some bugs with the opcode mask getting function.
This commit is contained in:
+2
-2
@@ -19,9 +19,9 @@ Instruction instructions[OPCODECOUNT] = {
|
||||
unsigned char GetInstructionMask(TokenType type, TokenClass parameterOneType) {
|
||||
switch (type) {
|
||||
case COPY:
|
||||
if (parameterOneType == Reg) return 0x20; //0b00100000;
|
||||
if (parameterOneType & Reg) return 0x20; //0b00100000;
|
||||
|
||||
return 0xA0;////0b10100000;
|
||||
return 0xA0;//0b10100000;
|
||||
case ADD:
|
||||
return 0x40;//0b01000000;
|
||||
case SUB:
|
||||
|
||||
Reference in New Issue
Block a user