示例#1
0
 public void When_UshortHalfOverflow_HalfCarrySet()
 {
     registers.Reset();
     // Half carry for 16 bit is only considered in the upper byte nibbles
     registers.ClearFlags(RegisterFlags.H);
     alu.Add((ushort)(1 << 11), (ushort)(1 << 11));
     Assert.True(registers.AreFlagsSet(RegisterFlags.H));
 }
示例#2
0
 public void ClearZflagTest()
 {
     registers.Reset();
     registers.F = 1 << 7;
     registers.ClearFlags(Z);
     Assert.Equal(0, registers.F);
 }