コード例 #1
0
 public DoubleAddOperation(Machine parent, byte opcode) : base(parent)
 {
     source = BitsToRegister((opcode & 0b110000) >> 4);
     Cycles = 10;
 }
コード例 #2
0
 public ImmediateLoadRegisterPairOperation(Machine parent, byte opcode) : base(parent)
 {
     target = BitsToRegisterPair((byte)((opcode & 0b110000) >> 4));
     Cycles = 10;
     Length = 3;
 }
コード例 #3
0
 public StackOperation(Machine parent, byte opcode) : base(parent)
 {
     target = BitsToRegisterPair((byte)((opcode & 0b110000) >> 4));
     push   = (opcode & 0b100) > 0;
     Cycles = push ? 11 : 10;
 }
コード例 #4
0
 public AccMoveOperation(Machine parent, byte opcode) : base(parent)
 {
     target = (opcode & 0b10000) > 0 ? OperationTarget16.D : OperationTarget16.B;
     store  = (opcode & 0b1000) == 0;
     Cycles = 7;
 }
コード例 #5
0
 public DoubleIncDecOperation(Machine parent, byte opcode) : base(parent)
 {
     target = BitsToRegister((opcode & 0b110000) >> 4);
     inc    = (opcode & 0b1000) == 0;
     Cycles = 5;
 }