mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-03-11 05:41:49 +00:00
Resurrect the Register16 class. This (or something *very* much like it) is going to be necessary to add a Z80 emulator (reference access to the high/low parts of 16-bit registers).
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
@@ -16,11 +16,11 @@ namespace EightBit
|
||||
{
|
||||
}
|
||||
|
||||
public IntelOpCodeDecoded(byte opcode)
|
||||
public IntelOpCodeDecoded(byte opCode)
|
||||
{
|
||||
this.x = (opcode & 0b11000000) >> 6; // 0 - 3
|
||||
this.y = (opcode & 0b00111000) >> 3; // 0 - 7
|
||||
this.z = opcode & 0b00000111; // 0 - 7
|
||||
this.x = (opCode & 0b11000000) >> 6; // 0 - 3
|
||||
this.y = (opCode & 0b00111000) >> 3; // 0 - 7
|
||||
this.z = opCode & 0b00000111; // 0 - 7
|
||||
this.p = (this.y & 0b110) >> 1; // 0 - 3
|
||||
this.q = this.y & 1; // 0 - 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user