示例#1
0
 public void RETTest()
 {
     PrivateObject z = new PrivateObject(new Z80(new Memory48K()));
     Z80_Accessor target = new Z80_Accessor(z);
     target.PC = 0x3535;
     target.SP = 0x5000;
     target.Memory[0x5000] = 0xb5;
     target.Memory[0x5001] = 0x18;
     target.RET();
     Assert.IsTrue(target.SP == 0x5002 && target.PC == 0x18b5, "Error: RET");
 }