public void LD_nn_ATest() { PrivateObject param0 = new PrivateObject(new Z80(new Memory48K())); Z80_Accessor target = new Z80_Accessor(param0); // If the contents of the Accumulator are byte D7H, at execution of // LD (3141H), AD 7H results in memory location 3141H. target.A = 0xd7; target.Memory[0] = 0x41; target.Memory[1] = 0x31; target.LD_nn_A(); Assert.IsTrue(target.Memory[0x3141] == 0xd7, "Error: LD (nn), A"); }