示例#1
0
        public void TestPaging()
        {
            PDP.Load8(0200);

            PDP.Deposit8(7300);
            PDP.Deposit8(1205);
            PDP.Deposit8(1206);
            PDP.Deposit8(3207);
            PDP.Deposit8(7402);
            PDP.Deposit8(0002);
            PDP.Deposit8(0003);

            PDP.Load8(0200);
            PDP.Continue();

            PDP.Load8(0207);
            PDP.Exam();

            Assert.AreEqual(5u, PDP.Processor.Registers.AC.Accumulator);
        }
示例#2
0
        public void TestAddition()
        {
            PDP.Load8(0000);

            PDP.Deposit8(7300);
            PDP.Deposit8(1005);
            PDP.Deposit8(1006);
            PDP.Deposit8(3007);
            PDP.Deposit8(7402);
            PDP.Deposit8(0002);
            PDP.Deposit8(0003);

            PDP.Load8(0000);
            PDP.Continue();

            PDP.Load8(0007);
            PDP.Exam();

            Assert.AreEqual(5u, PDP.Processor.Registers.AC.Accumulator);
        }