예제 #1
0
파일: sib.py 프로젝트: mmg1/syringe-1
def decode(instruction):
    '''Extract the modrm tuple out of the provided instruction'''
    modrm = instruction[2]
    if len(modrm) > 0:
        modrm = decoder.decodeInteger(modrm)
        return decoder.extractsib(modrm)
    return None
예제 #2
0
def extractsib(instruction):
    '''Returns (scale,index,base) of an instruction'''
    sib = getSib(instruction)
    return decoder.extractsib( decodeInteger(sib) )
예제 #3
0
파일: __init__.py 프로젝트: mmg1/syringe-1
def extractsib(instruction):
    '''Returns (scale,index,base) of an instruction'''
    sib = getSib(instruction)
    return decoder.extractsib(decodeInteger(sib))