Tidy up some layout issues.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon
2019-02-03 21:13:06 +00:00
parent c4e613065b
commit 30aa1b70bf
3 changed files with 26 additions and 24 deletions

View File

@ -10,12 +10,13 @@
public IntelOpCodeDecoded() { }
public IntelOpCodeDecoded(byte opcode) {
public IntelOpCodeDecoded(byte opcode)
{
x = (opcode & 0b11000000) >> 6; // 0 - 3
y = (opcode & 0b00111000) >> 3; // 0 - 7
z = (opcode & 0b00000111); // 0 - 7
p = (y & 0b110) >> 1; // 0 - 3
q = (y & 1); // 0 - 1
}
y = (opcode & 0b00111000) >> 3; // 0 - 7
z = (opcode & 0b00000111); // 0 - 7
p = (y & 0b110) >> 1; // 0 - 3
q = (y & 1); // 0 - 1
}
}
}