public void ExchangeRegisterSetWorksAsExpected() { // --- Arrange var regs = new Registers(); regs.BC = 0xABCD; regs._BC_ = 0x2345; regs.DE = 0xBCDE; regs._DE_ = 0x3456; regs.HL = 0xCDEF; regs._HL_ = 0x4567; // --- Act regs.ExchangeRegisterSet(); // --- Assert regs.BC.ShouldBe((ushort)0x2345); regs._BC_.ShouldBe((ushort)0xABCD); regs.DE.ShouldBe((ushort)0x3456); regs._DE_.ShouldBe((ushort)0xBCDE); regs.HL.ShouldBe((ushort)0x4567); regs._HL_.ShouldBe((ushort)0xCDEF); }
void EXX() { Registers.ExchangeRegisterSet(); }