Пример #1
0
 public override void Execute(PICController controller)
 {
     if (TestCondition(controller))
     {
         controller.SetPC_13Bit(controller.GetPC() + 1);
     }
 }
        public override void Execute(PICController controller)
        {
            bool Cond = TestCondition(controller);

            uint Result = controller.GetBankedRegister(Register);

            if (Result == 0)
            {
                Result = 0xFF;
            }
            else
            {
                Result -= 1;
            }

            if (Target)
            {
                controller.SetBankedRegister(Register, Result);
            }
            else
            {
                controller.SetWRegister(Result);
            }

            if (Cond)
            {
                controller.SetPC_13Bit(controller.GetPC() + 1);
            }
        }
Пример #3
0
 public override void Execute(PICController controller)
 {
     controller.SetPC_13Bit(controller.PopCallStack());
     controller.SetUnbankedRegisterBit(PICMemory.ADDR_INTCON, PICMemory.INTCON_BIT_GIE, true);
 }
Пример #4
0
        public override void Execute(PICController controller)
        {
            controller.SetWRegister(Literal);

            controller.SetPC_13Bit(controller.PopCallStack());
        }
 public override void Execute(PICController controller)
 {
     controller.SetPC_13Bit(controller.PopCallStack());
 }