Esempio n. 1
0
        private static RegisterState Eqrr(RegisterState before, int a, int b, int c)
        {
            var value = before[a] == before[b] ? 1 : 0;

            return(before.With(value, c));
        }
Esempio n. 2
0
        private static RegisterState Gtri(RegisterState before, int a, int b, int c)
        {
            var value = before[a] > b ? 1 : 0;

            return(before.With(value, c));
        }
Esempio n. 3
0
        private static RegisterState Gtir(RegisterState before, int a, int b, int c)
        {
            var value = a > before[b] ? 1 : 0;

            return(before.With(value, c));
        }
Esempio n. 4
0
 private static RegisterState Seti(RegisterState before, int a, int b, int c)
 {
     return(before.With(a, c));
 }
Esempio n. 5
0
        private static RegisterState Borr(RegisterState before, int a, int b, int c)
        {
            var value = before[a] | before[b];

            return(before.With(value, c));
        }
Esempio n. 6
0
        private static RegisterState Bani(RegisterState before, int a, int b, int c)
        {
            var value = before[a] & b;

            return(before.With(value, c));
        }