Port of EightBit library to .Net (unworking!)

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon
2019-02-02 15:12:51 +00:00
parent d693218618
commit 9a06b1743f
53 changed files with 16224 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
namespace EightBit
{
class IntelOpCodeDecoded
{
public int x;
public int y;
public int z;
public int p;
public int q;
public IntelOpCodeDecoded() { }
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
}
}
}