I'm dumb, fixed the CMP opcode overlap..
This commit is contained in:
+5
-5
@@ -28,9 +28,9 @@ Instruction instructions[OPCODECOUNT] = {
|
||||
COPY - 0010 0XXX COPY REG, REG
|
||||
- 0010 1XXX COPY REG, Constant
|
||||
- 0011 0XXX COPY REG, Address
|
||||
- 0010 0XXX COPY Address, REG
|
||||
- 0010 1XXX COPY Address, Constant
|
||||
- 0011 0XXX COPY Address, Address
|
||||
- 1010 0XXX COPY Address, REG
|
||||
- 1010 1XXX COPY Address, Constant
|
||||
- 1011 0XXX COPY Address, Address
|
||||
|
||||
ADD - 0100 0XXX ADD REG, REG
|
||||
- 0100 1XXX ADD REG, Constant
|
||||
@@ -42,14 +42,14 @@ Instruction instructions[OPCODECOUNT] = {
|
||||
|
||||
OUT - 1111 1XXX OUT REG
|
||||
*/
|
||||
//COPY 001X XXXX
|
||||
//COPY X01X XXXX
|
||||
//ADD 010X XXXX
|
||||
//SUB 011X XXXX
|
||||
//CMP 100X XXXX
|
||||
//REG XXX0 0XXX
|
||||
//Constant XXX0 1XXX
|
||||
//Address XXX1 0XXX
|
||||
//R1 XXXX X001 -> XXXX X111 (R1 to R8)
|
||||
//R1 XXXX X000 -> XXXX X111 (R1 to R8)
|
||||
|
||||
Register registers[REGISTERCOUNT] = {
|
||||
{ "r1", R1 },
|
||||
|
||||
Reference in New Issue
Block a user