示例#1
0
 public AndOperation(Machine parent, byte opcode) : base(parent)
 {
     source = BitsToRegister(opcode & 0b111);
     Cycles = source == OperationTarget8.M ? 7 : 4;
 }
示例#2
0
 public MoveOperation(Machine parent, byte opcode) : base(parent)
 {
     source = BitsToRegister(opcode & 0b111);
     target = BitsToRegister((opcode & 0b111000) >> 3);
 }
 public ImmediateMoveOperation(Machine parent, byte opcode) : base(parent)
 {
     target = BitsToRegister((opcode & 0b111000) >> 3);
     Cycles = target == OperationTarget8.M ? 10 : 7;
     Length = 2;
 }
示例#4
0
 public SubOperation(Machine parent, byte opcode) : base(parent)
 {
     source    = BitsToRegister(opcode & 0b111);
     subBorrow = (opcode & 0b1000) > 0;
     Cycles    = source == OperationTarget8.M ? 7 : 4;
 }