Exemplo n.º 1
0
 public void RRCTest()
 {
     PrivateObject z = new PrivateObject(new Z80(new Memory48K()));
     Z80_Accessor target = new Z80_Accessor(z);
     target.A = 0x31;
     target.RRC(7);
     Assert.IsTrue(target.A == 0x98 && (target.F & Flag.Carry) == Flag.Carry, "Error: RRC");
 }