miasm
Reverse engineering framework
miasm.arch.msp430.regs Namespace Reference

Variables

list regs16_str = ["PC", "SP", "SR"] + ["R%d" % i for i in range(3, 16)]
 
list regs16_expr = [ExprId(x, 16) for x in regs16_str]
 
 exception_flags = ExprId('exception_flags', 32)
 
 gpregs = reg_info(regs16_str, regs16_expr)
 
list PC = regs16_expr[0]
 
list SP = regs16_expr[1]
 
list SR = regs16_expr[2]
 
list R3 = regs16_expr[3]
 
list R4 = regs16_expr[4]
 
list R5 = regs16_expr[5]
 
list R6 = regs16_expr[6]
 
list R7 = regs16_expr[7]
 
list R8 = regs16_expr[8]
 
list R9 = regs16_expr[9]
 
list R10 = regs16_expr[10]
 
list R11 = regs16_expr[11]
 
list R12 = regs16_expr[12]
 
list R13 = regs16_expr[13]
 
list R14 = regs16_expr[14]
 
list R15 = regs16_expr[15]
 
 PC_init = ExprId("PC_init", 16)
 
 SP_init = ExprId("SP_init", 16)
 
 SR_init = ExprId("SR_init", 16)
 
 R3_init = ExprId("R3_init", 16)
 
 R4_init = ExprId("R4_init", 16)
 
 R5_init = ExprId("R5_init", 16)
 
 R6_init = ExprId("R6_init", 16)
 
 R7_init = ExprId("R7_init", 16)
 
 R8_init = ExprId("R8_init", 16)
 
 R9_init = ExprId("R9_init", 16)
 
 R10_init = ExprId("R10_init", 16)
 
 R11_init = ExprId("R11_init", 16)
 
 R12_init = ExprId("R12_init", 16)
 
 R13_init = ExprId("R13_init", 16)
 
 R14_init = ExprId("R14_init", 16)
 
 R15_init = ExprId("R15_init", 16)
 
string reg_zf = 'zf'
 
string reg_nf = 'nf'
 
string reg_of = 'of'
 
string reg_cf = 'cf'
 
string reg_cpuoff = 'cpuoff'
 
string reg_gie = 'gie'
 
string reg_osc = 'osc'
 
string reg_scg0 = 'scg0'
 
string reg_scg1 = 'scg1'
 
string reg_res = 'res'
 
 zf = ExprId(reg_zf, size=1)
 
 nf = ExprId(reg_nf, size=1)
 
 of = ExprId(reg_of, size=1)
 
 cf = ExprId(reg_cf, size=1)
 
 cpuoff = ExprId(reg_cpuoff, size=1)
 
 gie = ExprId(reg_gie, size=1)
 
 osc = ExprId(reg_osc, size=1)
 
 scg0 = ExprId(reg_scg0, size=1)
 
 scg1 = ExprId(reg_scg1, size=1)
 
 res = ExprId(reg_res, size=7)
 
 zf_init = ExprId("zf_init", size=1)
 
 nf_init = ExprId("nf_init", size=1)
 
 of_init = ExprId("of_init", size=1)
 
 cf_init = ExprId("cf_init", size=1)
 
 cpuoff_init = ExprId("cpuoff_init", size=1)
 
 gie_init = ExprId("gie_init", size=1)
 
 osc_init = ExprId("osc_init", size=1)
 
 scg0_init = ExprId("scg0_init", size=1)
 
 scg1_init = ExprId("scg1_init", size=1)
 
 res_init = ExprId("res_init", size=7)
 
list all_regs_ids
 
list all_regs_ids_no_alias = all_regs_ids
 
dictionary attrib_to_regs
 
 all_regs_ids_byname = dict([(x.name, x) for x in all_regs_ids])
 
list all_regs_ids_init
 
dictionary regs_init = {}
 
list regs_flt_expr = []
 

Variable Documentation

◆ all_regs_ids

list miasm.arch.msp430.regs.all_regs_ids
Initial value:
1 = [
2  PC, SP, SR, R3, R4, R5, R6, R7, R8, R9, R10, R11, R12, R13, R14, R15,
3  zf, nf, of, cf,
4  cpuoff, gie, osc, scg0, scg1, res,
5 ]

◆ all_regs_ids_byname

miasm.arch.msp430.regs.all_regs_ids_byname = dict([(x.name, x) for x in all_regs_ids])

◆ all_regs_ids_init

list miasm.arch.msp430.regs.all_regs_ids_init
Initial value:
1 = [PC_init, SP_init, SR_init, R3_init,
2  R4_init, R5_init, R6_init, R7_init,
3  R8_init, R9_init, R10_init, R11_init,
4  R12_init, R13_init, R14_init, R15_init,
5  zf_init, nf_init, of_init, cf_init,
6  cpuoff_init, gie_init, osc_init,
7  scg0_init, scg1_init, res_init,
8  ]

◆ all_regs_ids_no_alias

list miasm.arch.msp430.regs.all_regs_ids_no_alias = all_regs_ids

◆ attrib_to_regs

dictionary miasm.arch.msp430.regs.attrib_to_regs
Initial value:
1 = {
2  'l': all_regs_ids_no_alias,
3  'b': all_regs_ids_no_alias,
4 }

◆ cf

miasm.arch.msp430.regs.cf = ExprId(reg_cf, size=1)

◆ cf_init

miasm.arch.msp430.regs.cf_init = ExprId("cf_init", size=1)

◆ cpuoff

miasm.arch.msp430.regs.cpuoff = ExprId(reg_cpuoff, size=1)

◆ cpuoff_init

miasm.arch.msp430.regs.cpuoff_init = ExprId("cpuoff_init", size=1)

◆ exception_flags

miasm.arch.msp430.regs.exception_flags = ExprId('exception_flags', 32)

◆ gie

miasm.arch.msp430.regs.gie = ExprId(reg_gie, size=1)

◆ gie_init

miasm.arch.msp430.regs.gie_init = ExprId("gie_init", size=1)

◆ gpregs

miasm.arch.msp430.regs.gpregs = reg_info(regs16_str, regs16_expr)

◆ nf

miasm.arch.msp430.regs.nf = ExprId(reg_nf, size=1)

◆ nf_init

miasm.arch.msp430.regs.nf_init = ExprId("nf_init", size=1)

◆ of

miasm.arch.msp430.regs.of = ExprId(reg_of, size=1)

◆ of_init

miasm.arch.msp430.regs.of_init = ExprId("of_init", size=1)

◆ osc

miasm.arch.msp430.regs.osc = ExprId(reg_osc, size=1)

◆ osc_init

miasm.arch.msp430.regs.osc_init = ExprId("osc_init", size=1)

◆ PC

list miasm.arch.msp430.regs.PC = regs16_expr[0]

◆ PC_init

miasm.arch.msp430.regs.PC_init = ExprId("PC_init", 16)

◆ R10

list miasm.arch.msp430.regs.R10 = regs16_expr[10]

◆ R10_init

miasm.arch.msp430.regs.R10_init = ExprId("R10_init", 16)

◆ R11

list miasm.arch.msp430.regs.R11 = regs16_expr[11]

◆ R11_init

miasm.arch.msp430.regs.R11_init = ExprId("R11_init", 16)

◆ R12

list miasm.arch.msp430.regs.R12 = regs16_expr[12]

◆ R12_init

miasm.arch.msp430.regs.R12_init = ExprId("R12_init", 16)

◆ R13

list miasm.arch.msp430.regs.R13 = regs16_expr[13]

◆ R13_init

miasm.arch.msp430.regs.R13_init = ExprId("R13_init", 16)

◆ R14

list miasm.arch.msp430.regs.R14 = regs16_expr[14]

◆ R14_init

miasm.arch.msp430.regs.R14_init = ExprId("R14_init", 16)

◆ R15

list miasm.arch.msp430.regs.R15 = regs16_expr[15]

◆ R15_init

miasm.arch.msp430.regs.R15_init = ExprId("R15_init", 16)

◆ R3

list miasm.arch.msp430.regs.R3 = regs16_expr[3]

◆ R3_init

miasm.arch.msp430.regs.R3_init = ExprId("R3_init", 16)

◆ R4

list miasm.arch.msp430.regs.R4 = regs16_expr[4]

◆ R4_init

miasm.arch.msp430.regs.R4_init = ExprId("R4_init", 16)

◆ R5

list miasm.arch.msp430.regs.R5 = regs16_expr[5]

◆ R5_init

miasm.arch.msp430.regs.R5_init = ExprId("R5_init", 16)

◆ R6

list miasm.arch.msp430.regs.R6 = regs16_expr[6]

◆ R6_init

miasm.arch.msp430.regs.R6_init = ExprId("R6_init", 16)

◆ R7

list miasm.arch.msp430.regs.R7 = regs16_expr[7]

◆ R7_init

miasm.arch.msp430.regs.R7_init = ExprId("R7_init", 16)

◆ R8

list miasm.arch.msp430.regs.R8 = regs16_expr[8]

◆ R8_init

miasm.arch.msp430.regs.R8_init = ExprId("R8_init", 16)

◆ R9

list miasm.arch.msp430.regs.R9 = regs16_expr[9]

◆ R9_init

miasm.arch.msp430.regs.R9_init = ExprId("R9_init", 16)

◆ reg_cf

string miasm.arch.msp430.regs.reg_cf = 'cf'

◆ reg_cpuoff

string miasm.arch.msp430.regs.reg_cpuoff = 'cpuoff'

◆ reg_gie

string miasm.arch.msp430.regs.reg_gie = 'gie'

◆ reg_nf

string miasm.arch.msp430.regs.reg_nf = 'nf'

◆ reg_of

string miasm.arch.msp430.regs.reg_of = 'of'

◆ reg_osc

string miasm.arch.msp430.regs.reg_osc = 'osc'

◆ reg_res

string miasm.arch.msp430.regs.reg_res = 'res'

◆ reg_scg0

string miasm.arch.msp430.regs.reg_scg0 = 'scg0'

◆ reg_scg1

string miasm.arch.msp430.regs.reg_scg1 = 'scg1'

◆ reg_zf

string miasm.arch.msp430.regs.reg_zf = 'zf'

◆ regs16_expr

list miasm.arch.msp430.regs.regs16_expr = [ExprId(x, 16) for x in regs16_str]

◆ regs16_str

list miasm.arch.msp430.regs.regs16_str = ["PC", "SP", "SR"] + ["R%d" % i for i in range(3, 16)]

◆ regs_flt_expr

list miasm.arch.msp430.regs.regs_flt_expr = []

◆ regs_init

dictionary miasm.arch.msp430.regs.regs_init = {}

◆ res

miasm.arch.msp430.regs.res = ExprId(reg_res, size=7)

◆ res_init

miasm.arch.msp430.regs.res_init = ExprId("res_init", size=7)

◆ scg0

miasm.arch.msp430.regs.scg0 = ExprId(reg_scg0, size=1)

◆ scg0_init

miasm.arch.msp430.regs.scg0_init = ExprId("scg0_init", size=1)

◆ scg1

miasm.arch.msp430.regs.scg1 = ExprId(reg_scg1, size=1)

◆ scg1_init

miasm.arch.msp430.regs.scg1_init = ExprId("scg1_init", size=1)

◆ SP

list miasm.arch.msp430.regs.SP = regs16_expr[1]

◆ SP_init

miasm.arch.msp430.regs.SP_init = ExprId("SP_init", 16)

◆ SR

list miasm.arch.msp430.regs.SR = regs16_expr[2]

◆ SR_init

miasm.arch.msp430.regs.SR_init = ExprId("SR_init", 16)

◆ zf

miasm.arch.msp430.regs.zf = ExprId(reg_zf, size=1)

◆ zf_init

miasm.arch.msp430.regs.zf_init = ExprId("zf_init", size=1)