Example #1
0
 public void LD_dd_nn2Test()
 {
     PrivateObject param0 = new PrivateObject(new Z80(new Memory48K()));
     Z80_Accessor target = new Z80_Accessor(param0);
     target.Memory[0] = 0x30;
     target.Memory[1] = 0x21;
     target.Memory[0x2130] = 0x65;
     target.Memory[0x2131] = 0x78;
     target.LD_dd_nn2(0);
     Assert.IsTrue(target.Get16BitRegisters(0) == 0x7865, "Error: LD dd, (nn)");
 }