tidy the intel op-code decoder a little

This commit is contained in:
Adrian Conlon
2025-11-27 16:49:44 +00:00
parent 1dfd9621a1
commit 810d05a50e

View File

@@ -10,9 +10,9 @@ namespace EightBit
{
this.X = (opCode & 0b11000000) >> 6; // 0 - 3
this.Y = (opCode & 0b00111000) >> 3; // 0 - 7
this.Z = opCode & 0b00000111; // 0 - 7
this.Z = (opCode & 0b00000111); // 0 - 7
this.P = (this.Y & 0b110) >> 1; // 0 - 3
this.Q = this.Y & 0b1; // 0 - 1
this.Q = (this.Y & 0b001); // 0 - 1
}
public int X { get; }