miasm
Reverse engineering framework
|
Classes | |
class | additional_info |
class | bs_cond_off_d |
class | bs_cond_off_s |
class | bw_mn |
class | instruction_msp430 |
class | mn_msp430 |
class | msp430_arg |
class | msp430_dreg_arg |
class | msp430_offs |
class | msp430_sreg_arg |
Functions | |
def | cb_deref_nooff (tokens) |
def | cb_deref_pinc (tokens) |
def | cb_deref_off (tokens) |
def | cb_expr (tokens) |
def | addop (name, fields, args=None, alias=False) |
Variables | |
log = logging.getLogger("msp430dis") | |
console_handler = logging.StreamHandler() | |
list | conditional_branch |
list | unconditional_branch = ['jmp'] |
ARO = Suppress("@") | |
LPARENT = Suppress("(") | |
RPARENT = Suppress(")") | |
PINC = Suppress("+") | |
tuple | deref_nooff = (ARO + base_expr).setParseAction(cb_deref_nooff) |
tuple | deref_pinc = (ARO + base_expr + PINC).setParseAction(cb_deref_pinc) |
tuple | deref_off = (base_expr + LPARENT + gpregs.parser + RPARENT).setParseAction(cb_deref_off) |
tuple | sreg_p = (deref_pinc | deref_nooff | deref_off | base_expr).setParseAction(cb_expr) |
mode_msp430 = None | |
off_s = bs(l=16, order=-10, cls=(bs_cond_off_s,), fname = "off_s") | |
off_d = bs(l=16, order=-10, cls=(bs_cond_off_d,), fname = "off_d") | |
a_s = bs(l=2, order=-4, fname='a_s') | |
a_d = bs(l=1, order=-6, fname='a_d') | |
a_d2 = bs(l=2, order=-2, fname='a_d') | |
sreg = bs(l=4, order=-3, cls=(msp430_sreg_arg,), fname='sreg') | |
dreg = bs(l=4, order=-5, cls=(msp430_dreg_arg,), fname='dreg') | |
bw = bw_mn(l=1, order=-10, mn_mod=['.w', '.b'], fname='size') | |
bs_f1 | |
bs_f2 | |
bs_f2_nobw | |
offimm = bs(l=10, cls=(msp430_offs,), fname="offs", order=-1) | |
bs_f2_jcc | |
def miasm.arch.msp430.arch.addop | ( | name, | |
fields, | |||
args = None , |
|||
alias = False |
|||
) |
def miasm.arch.msp430.arch.cb_deref_nooff | ( | tokens | ) |
def miasm.arch.msp430.arch.cb_deref_off | ( | tokens | ) |
def miasm.arch.msp430.arch.cb_deref_pinc | ( | tokens | ) |
def miasm.arch.msp430.arch.cb_expr | ( | tokens | ) |
miasm.arch.msp430.arch.a_d = bs(l=1, order=-6, fname='a_d') |
miasm.arch.msp430.arch.a_s = bs(l=2, order=-4, fname='a_s') |
miasm.arch.msp430.arch.ARO = Suppress("@") |
miasm.arch.msp430.arch.bs_f1 |
miasm.arch.msp430.arch.bs_f2 |
miasm.arch.msp430.arch.bs_f2_jcc |
miasm.arch.msp430.arch.bs_f2_nobw |
miasm.arch.msp430.arch.bw = bw_mn(l=1, order=-10, mn_mod=['.w', '.b'], fname='size') |
list miasm.arch.msp430.arch.conditional_branch |
miasm.arch.msp430.arch.console_handler = logging.StreamHandler() |
tuple miasm.arch.msp430.arch.deref_nooff = (ARO + base_expr).setParseAction(cb_deref_nooff) |
tuple miasm.arch.msp430.arch.deref_off = (base_expr + LPARENT + gpregs.parser + RPARENT).setParseAction(cb_deref_off) |
tuple miasm.arch.msp430.arch.deref_pinc = (ARO + base_expr + PINC).setParseAction(cb_deref_pinc) |
miasm.arch.msp430.arch.dreg = bs(l=4, order=-5, cls=(msp430_dreg_arg,), fname='dreg') |
miasm.arch.msp430.arch.log = logging.getLogger("msp430dis") |
miasm.arch.msp430.arch.LPARENT = Suppress("(") |
miasm.arch.msp430.arch.mode_msp430 = None |
miasm.arch.msp430.arch.off_d = bs(l=16, order=-10, cls=(bs_cond_off_d,), fname = "off_d") |
miasm.arch.msp430.arch.off_s = bs(l=16, order=-10, cls=(bs_cond_off_s,), fname = "off_s") |
miasm.arch.msp430.arch.offimm = bs(l=10, cls=(msp430_offs,), fname="offs", order=-1) |
miasm.arch.msp430.arch.PINC = Suppress("+") |
miasm.arch.msp430.arch.RPARENT = Suppress(")") |
miasm.arch.msp430.arch.sreg = bs(l=4, order=-3, cls=(msp430_sreg_arg,), fname='sreg') |
tuple miasm.arch.msp430.arch.sreg_p = (deref_pinc | deref_nooff | deref_off | base_expr).setParseAction(cb_expr) |
list miasm.arch.msp430.arch.unconditional_branch = ['jmp'] |