예제 #1
0
def match_type(a,b):
    """Match operand type against operand type rule"""
    b = (b.type, b.sign, b.size, b.source, b.indirection)
    #print a,b
    for aa,bb in zip(a,b):
        if not bb in wraplist(aa):
            return False
    return True
예제 #2
0
파일: Assembler.py 프로젝트: wokaka/cedp
def match_type(a, b):
    """Match operand type against operand type rule"""
    b = (b.type, b.sign, b.size, b.source, b.indirection)
    #print a,b
    for aa, bb in zip(a, b):
        if not bb in wraplist(aa):
            return False
    return True
예제 #3
0
파일: AsmRules.py 프로젝트: pyrovski/decuda
def f_oreg(width=32):
    return (OP_TYPE_FLOAT, OP_SIGN_NONE, width, [_regw[x] for x in wraplist(width)] + [_regwo[x] for x in wraplist(width)], OP_INDIRECTION_NONE)
예제 #4
0
파일: AsmRules.py 프로젝트: pyrovski/decuda
def i_oreg(sign, width=[16,32]):
    return (OP_TYPE_INT, sign, width, [_regw[x] for x in wraplist(width)] + [_regwo[x] for x in wraplist(width)], OP_INDIRECTION_NONE)
예제 #5
0
파일: AsmRules.py 프로젝트: pyrovski/decuda
def psize_sign(x):
    return [(BF_PSIZE_SIGN, y, IS_SIGNED) for y in wraplist(x)]
예제 #6
0
파일: AsmRules.py 프로젝트: pyrovski/decuda
def psize_width_s(x):
    return [(BF_OPER1_H, y, IS_32BIT) for y in wraplist(x)]
예제 #7
0
파일: AsmRules.py 프로젝트: pyrovski/decuda
def psize_width(x):
    return [(BF_PSIZE_WIDTH, y, IS_32BIT) for y in wraplist(x)]
예제 #8
0
파일: AsmRules.py 프로젝트: wokaka/cedp
def f_oreg(width=32):
    return (OP_TYPE_FLOAT, OP_SIGN_NONE, width, [_regw[x] for x in wraplist(width)] + [_regwo[x] for x in wraplist(width)], OP_INDIRECTION_NONE)
예제 #9
0
파일: AsmRules.py 프로젝트: wokaka/cedp
def i_oreg(sign, width=[16,32]):
    return (OP_TYPE_INT, sign, width, [_regw[x] for x in wraplist(width)] + [_regwo[x] for x in wraplist(width)], OP_INDIRECTION_NONE)
예제 #10
0
파일: AsmRules.py 프로젝트: wokaka/cedp
def psize_sign(x):
    return [(BF_PSIZE_SIGN, y, IS_SIGNED) for y in wraplist(x)]
예제 #11
0
파일: AsmRules.py 프로젝트: wokaka/cedp
def psize_width_s(x):
    return [(BF_OPER1_H, y, IS_32BIT) for y in wraplist(x)]
예제 #12
0
파일: AsmRules.py 프로젝트: wokaka/cedp
def psize_width(x):
    return [(BF_PSIZE_WIDTH, y, IS_32BIT) for y in wraplist(x)]