示例#1
0
 public void RLDTest()
 {
     PrivateObject z = new PrivateObject(new Z80(new Memory48K()));
     Z80_Accessor target = new Z80_Accessor(z);
     target.Set16BitRegisters(2, 0x5000);
     target.A = 0x7a;
     target.Memory[0x5000] = 0x31;
     target.RLD();
     Assert.IsTrue(target.A == 0x73 && target.Memory[0x5000] == 0x1a, "Error: RLD");
 }