Forgot about the bloody IN instruction...

This commit is contained in:
2022-08-25 21:01:35 -05:00
parent 80bea6f1a8
commit 0d060248cb
+4
View File
@@ -39,6 +39,9 @@ Instruction instructions[OPCODECOUNT] = {
CMP - 1000 0XXX CMP REG, REG CMP - 1000 0XXX CMP REG, REG
- 1000 1XXX CMP REG, Constant - 1000 1XXX CMP REG, Constant
- 1001 0XXX CMP REG, Address - 1001 0XXX CMP REG, Address
//Read from port specified by either a register or a constant
IN - 1100 0XXX IN REG
- 1101 0XXX IN Constant
OUT - 1111 1XXX OUT REG OUT - 1111 1XXX OUT REG
*/ */
@@ -46,6 +49,7 @@ Instruction instructions[OPCODECOUNT] = {
//ADD 010X XXXX //ADD 010X XXXX
//SUB 011X XXXX //SUB 011X XXXX
//CMP 100X XXXX //CMP 100X XXXX
//IN 110X XXXX
//REG XXX0 0XXX //REG XXX0 0XXX
//Constant XXX0 1XXX //Constant XXX0 1XXX
//Address XXX1 0XXX //Address XXX1 0XXX