コード例 #1
0
        static List<CStatement> Cmp_C(uint pc, uint instruction)
        {
            Instruction i = new Instruction(instruction);

            CStatement stat = new CStatement(CStatement.Kinds.Subtraction, RegName(i.RA()), RegName(i.RB()));
            CStatement ass = new CStatement(CStatement.Kinds.Assignment, "cr" + i.CRFD(), stat);
            if (!i.CmpLong())
                ass.OperandSizes = stat.OperandSizes = CStatement.Sizes.Int;

            List<CStatement> stats = new List<CStatement>();
            stats.Add(ass);
            return stats;
        }