Exemplo n.º 1
0
        public void CALL_2nnn()
        {
            const string address = "300";
            var          cpu     = new Cpu();

            cpu.Initialize();

            cpu.CALL_2nnn(address);
            cpu.Pc += 2;

            Assert.AreEqual(1, cpu.Sp);
            Assert.AreEqual(0x200, cpu.Stack[1]);
            Assert.AreEqual(short.Parse(address, NumberStyles.HexNumber), cpu.Pc);
        }