コード例 #1
0
        public void GetsTheCorrectAddress()
        {
            // Arrange
            _state.Registers.PC = 0x0020;

            // Act
            var(address, canSkipCycle) = _immediate.GetAddress(_state);

            // Assert - in immediate addressing, the location of the value is just right after the PC
            address.Should().Be(0x0021);
            canSkipCycle.Should().BeFalse();
        }