예제 #1
0
파일: Z80Test.cs 프로젝트: jo215/ZXSpectrum
 public void RET_ccTest()
 {
     PrivateObject z = new PrivateObject(new Z80(new Memory48K()));
     Z80_Accessor target = new Z80_Accessor(z);
     target.Set(Flag.Sign);
     target.PC = 0x3535;
     target.SP = 0x5000;
     target.Memory[0x5000] = 0xb5;
     target.Memory[0x5001] = 0x18;
     target.RET_cc(7);   //  RET M
     Assert.IsTrue(target.SP == 0x5002 && target.PC == 0x18b5, "Error: RET cc");
 }