Not sure if this was a really good idea, but integrated StyleCop rules into the builds. Corrected all except documentation problems.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon
2019-02-04 23:52:21 +00:00
parent 30aa1b70bf
commit 224000c4c7
53 changed files with 2430 additions and 1575 deletions
+21 -15
View File
@@ -1,22 +1,28 @@
namespace EightBit
{
class IntelOpCodeDecoded
{
public int x;
public int y;
public int z;
public int p;
public int q;
// <copyright file="IntelOpCodeDecoded.cs" company="Adrian Conlon">
// Copyright (c) Adrian Conlon. All rights reserved.
// </copyright>
public IntelOpCodeDecoded() { }
namespace EightBit
{
public class IntelOpCodeDecoded
{
private int x;
private int y;
private int z;
private int p;
private 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
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
}
}
}