Пример #1
0
        public Instruction CreateLongInstruction(Instruction loInstr, Instruction hiInstr)
        {
            var loAss = rw.MatchAddSub(loInstr);
            var hiAss = rw.MatchAdcSbc(hiInstr);

            if (loAss == null || hiAss == null)
            {
                return(null);
            }
            if (loAss.Op != hiAss.Op)
            {
                return(null);
            }

            return(rw.CreateLongInstruction(loAss, hiAss));
        }
Пример #2
0
        public bool CreateLongInstruction(Statement loInstr, Statement hiInstr)
        {
            var loAss = rw.MatchAddSub(loInstr);
            var hiAss = rw.MatchAdcSbc(hiInstr);

            if (loAss == null || hiAss == null)
            {
                return(false);
            }
            if (loAss.Op != hiAss.Op)
            {
                return(false);
            }

            rw.CreateLongInstruction(loAss, hiAss);
            return(true);
        }