public void LD_DE_ATest() { PrivateObject param0 = new PrivateObject(new Z80(new Memory48K())); Z80_Accessor target = new Z80_Accessor(param0); // If the contents of register pair DE are 1128H, and the Accumulator contains // byte A0H, the instruction LD (DE), A results in A0H in memory location // 1128H. target.Reset(); target.Set16BitRegisters(1, 0x1128); target.A = 0xa0; target.LD_DE_A(); Assert.IsTrue(target.Memory[0x1128] == 0xa0, "Error: LD (DE), A"); }