コード例 #1
0
        public bool FindSized(x86_insn_type type, byte required_size, bool backwards, out asmInstruction found)
        {
            asmInstruction backup = m_Current;

            found = null;
            while (m_Current != null)
            {
                if ((m_Current.Instruction.type == type) && (m_Current.Instruction.size == required_size))
                {
                    found = m_Current;
                    return(true);
                }
                if (backwards)
                {
                    m_Current = Previous;
                }
                else
                {
                    m_Current = Next;
                }
            }
            m_Current = backup;
            return(false);
        }
コード例 #2
0
        public bool FindByType(x86_insn_type type, bool backwards, out asmInstruction found)
        {
            asmInstruction backup = m_Current;

            found = null;
            while (m_Current != null)
            {
                if (m_Current.Instruction.type == type)
                {
                    found = m_Current;
                    return(true);
                }
                if (backwards)
                {
                    m_Current = Previous;
                }
                else
                {
                    m_Current = Next;
                }
            }
            m_Current = backup;
            return(false);
        }