Exemple #1
0
 public void LD_nn_ddTest()
 {
     PrivateObject param0 = new PrivateObject(new Z80(new Memory48K()));
     Z80_Accessor target = new Z80_Accessor(param0);
     target.Set16BitRegisters(0, 0x4644);
     target.Memory[0] = 0x00;
     target.Memory[1] = 0x10;
     target.LD_nn_dd(0);
     Assert.IsTrue(target.Memory[0x1000] == 0x44
         && target.Memory[0x1001] == 0x46, "Error: LD (nn), dd");
 }