示例#1
0
        public void PUSHW_ShouldWrapAround()
        {
            TestContext.WriteLine("PUSHW should wrap around");

            cpu.reset();
            cpu.PUSHW(0x1234);
            Assert.That(writeMemoryAddress[0].address, Is.EqualTo(65535));
            Assert.That(writeMemoryAddress[0].value, Is.EqualTo(0x34));
            Assert.That(writeMemoryAddress[1].address, Is.EqualTo(65534));
            Assert.That(writeMemoryAddress[1].value, Is.EqualTo(0x12));
        }