Added a disassembler which is still very buggy. Also fixed some bugs with the opcode mask getting function.

This commit is contained in:
2022-08-26 21:41:02 +00:00
parent e4a191a17e
commit 0785f21805
8 changed files with 153 additions and 38 deletions
+2 -2
View File
@@ -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: