Example #1
0
        public static void jпе(Link index)
        {
            RegisterFlag reg = reg <RegisterFlag>("flag");

            if (!reg.ZF)
            {
                ActiveCore.ActiveIndex = index.Line - 1;
            }
        }
Example #2
0
        public static void jlt(Link index)
        {
            RegisterFlag reg = reg <RegisterFlag>("flag");

            if (reg.SF != reg.OF)
            {
                ActiveCore.ActiveIndex = index.Line - 1;
            }
        }
Example #3
0
        private static void _comp(int value)
        {
            RegisterFlag reg = reg <RegisterFlag>("flag");

            reg.ZF = value == 0;
            reg.SF = value >= 0;
            reg.CF = false;
            reg.OF = false;
            reg.PF = value % 2 == 0;
        }
Example #4
0
        public static void jge(Link index)
        {
            Register32   a   = reg <Register32>("a");
            RegisterFlag reg = reg <RegisterFlag>("flag");

            if (reg.SF == reg.OF)
            {
                ActiveCore.ActiveIndex = index.Line - 1;
            }
        }