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

Variables

list regs32_str = ["R%d" % i for i in range(13)] + ["SP", "LR", "PC"]
 
list regs32_expr = [ExprId(x, 32) for x in regs32_str]
 
 exception_flags = ExprId('exception_flags', 32)
 
 interrupt_num = ExprId('interrupt_num', 32)
 
 bp_num = ExprId('bp_num', 32)
 
list R0 = regs32_expr[0]
 
list R1 = regs32_expr[1]
 
list R2 = regs32_expr[2]
 
list R3 = regs32_expr[3]
 
list R4 = regs32_expr[4]
 
list R5 = regs32_expr[5]
 
list R6 = regs32_expr[6]
 
list R7 = regs32_expr[7]
 
list R8 = regs32_expr[8]
 
list R9 = regs32_expr[9]
 
list R10 = regs32_expr[10]
 
list R11 = regs32_expr[11]
 
list R12 = regs32_expr[12]
 
list SP = regs32_expr[13]
 
list LR = regs32_expr[14]
 
list PC = regs32_expr[15]
 
 R0_init = ExprId("R0_init", 32)
 
 R1_init = ExprId("R1_init", 32)
 
 R2_init = ExprId("R2_init", 32)
 
 R3_init = ExprId("R3_init", 32)
 
 R4_init = ExprId("R4_init", 32)
 
 R5_init = ExprId("R5_init", 32)
 
 R6_init = ExprId("R6_init", 32)
 
 R7_init = ExprId("R7_init", 32)
 
 R8_init = ExprId("R8_init", 32)
 
 R9_init = ExprId("R9_init", 32)
 
 R10_init = ExprId("R10_init", 32)
 
 R11_init = ExprId("R11_init", 32)
 
 R12_init = ExprId("R12_init", 32)
 
 SP_init = ExprId("SP_init", 32)
 
 LR_init = ExprId("LR_init", 32)
 
 PC_init = ExprId("PC_init", 32)
 
string reg_zf = 'zf'
 
string reg_nf = 'nf'
 
string reg_of = 'of'
 
string reg_cf = 'cf'
 
 zf = ExprId(reg_zf, size=1)
 
 nf = ExprId(reg_nf, size=1)
 
 of = ExprId(reg_of, size=1)
 
 cf = ExprId(reg_cf, size=1)
 
 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)
 
string reg_ge0 = 'ge0'
 
string reg_ge1 = 'ge1'
 
string reg_ge2 = 'ge2'
 
string reg_ge3 = 'ge3'
 
 ge0 = ExprId(reg_ge0, size=1)
 
 ge1 = ExprId(reg_ge1, size=1)
 
 ge2 = ExprId(reg_ge2, size=1)
 
 ge3 = ExprId(reg_ge3, size=1)
 
 ge0_init = ExprId("ge0_init", size=1)
 
 ge1_init = ExprId("ge1_init", size=1)
 
 ge2_init = ExprId("ge2_init", size=1)
 
 ge3_init = ExprId("ge3_init", size=1)
 
list ge_regs = [ge0, ge1, ge2, ge3]
 
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 coproc_reg_str
 
 coproc_reg_expr
 
 coproc_reg_init
 
 coproc_reg_info
 
list regs_flt_expr = []
 

Variable Documentation

◆ all_regs_ids

list miasm.arch.arm.regs.all_regs_ids
Initial value:
1 = [
2  R0, R1, R2, R3, R4, R5, R6, R7, R8, R9, R10, R11, R12, SP, LR, PC,
3  zf, nf, of, cf,
4  ge0, ge1, ge2, ge3,
5  exception_flags, interrupt_num, bp_num
6 ]

◆ all_regs_ids_byname

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

◆ all_regs_ids_init

list miasm.arch.arm.regs.all_regs_ids_init
Initial value:
1 = [R0_init, R1_init, R2_init, R3_init,
2  R4_init, R5_init, R6_init, R7_init,
3  R8_init, R9_init, R10_init, R11_init,
4  R12_init, SP_init, LR_init, PC_init,
5  zf_init, nf_init, of_init, cf_init,
6  ge0_init, ge1_init, ge2_init, ge3_init,
7  ExprInt(0, 32), ExprInt(0, 32), ExprInt(0, 32)
8  ]

◆ all_regs_ids_no_alias

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

◆ attrib_to_regs

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

◆ bp_num

miasm.arch.arm.regs.bp_num = ExprId('bp_num', 32)

◆ cf

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

◆ cf_init

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

◆ coproc_reg_expr

miasm.arch.arm.regs.coproc_reg_expr

◆ coproc_reg_info

miasm.arch.arm.regs.coproc_reg_info

◆ coproc_reg_init

miasm.arch.arm.regs.coproc_reg_init

◆ coproc_reg_str

list miasm.arch.arm.regs.coproc_reg_str

◆ exception_flags

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

◆ ge0

miasm.arch.arm.regs.ge0 = ExprId(reg_ge0, size=1)

◆ ge0_init

miasm.arch.arm.regs.ge0_init = ExprId("ge0_init", size=1)

◆ ge1

miasm.arch.arm.regs.ge1 = ExprId(reg_ge1, size=1)

◆ ge1_init

miasm.arch.arm.regs.ge1_init = ExprId("ge1_init", size=1)

◆ ge2

miasm.arch.arm.regs.ge2 = ExprId(reg_ge2, size=1)

◆ ge2_init

miasm.arch.arm.regs.ge2_init = ExprId("ge2_init", size=1)

◆ ge3

miasm.arch.arm.regs.ge3 = ExprId(reg_ge3, size=1)

◆ ge3_init

miasm.arch.arm.regs.ge3_init = ExprId("ge3_init", size=1)

◆ ge_regs

list miasm.arch.arm.regs.ge_regs = [ge0, ge1, ge2, ge3]

◆ interrupt_num

miasm.arch.arm.regs.interrupt_num = ExprId('interrupt_num', 32)

◆ LR

list miasm.arch.arm.regs.LR = regs32_expr[14]

◆ LR_init

miasm.arch.arm.regs.LR_init = ExprId("LR_init", 32)

◆ nf

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

◆ nf_init

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

◆ of

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

◆ of_init

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

◆ PC

list miasm.arch.arm.regs.PC = regs32_expr[15]

◆ PC_init

miasm.arch.arm.regs.PC_init = ExprId("PC_init", 32)

◆ R0

list miasm.arch.arm.regs.R0 = regs32_expr[0]

◆ R0_init

miasm.arch.arm.regs.R0_init = ExprId("R0_init", 32)

◆ R1

list miasm.arch.arm.regs.R1 = regs32_expr[1]

◆ R10

list miasm.arch.arm.regs.R10 = regs32_expr[10]

◆ R10_init

miasm.arch.arm.regs.R10_init = ExprId("R10_init", 32)

◆ R11

list miasm.arch.arm.regs.R11 = regs32_expr[11]

◆ R11_init

miasm.arch.arm.regs.R11_init = ExprId("R11_init", 32)

◆ R12

list miasm.arch.arm.regs.R12 = regs32_expr[12]

◆ R12_init

miasm.arch.arm.regs.R12_init = ExprId("R12_init", 32)

◆ R1_init

miasm.arch.arm.regs.R1_init = ExprId("R1_init", 32)

◆ R2

list miasm.arch.arm.regs.R2 = regs32_expr[2]

◆ R2_init

miasm.arch.arm.regs.R2_init = ExprId("R2_init", 32)

◆ R3

list miasm.arch.arm.regs.R3 = regs32_expr[3]

◆ R3_init

miasm.arch.arm.regs.R3_init = ExprId("R3_init", 32)

◆ R4

list miasm.arch.arm.regs.R4 = regs32_expr[4]

◆ R4_init

miasm.arch.arm.regs.R4_init = ExprId("R4_init", 32)

◆ R5

list miasm.arch.arm.regs.R5 = regs32_expr[5]

◆ R5_init

miasm.arch.arm.regs.R5_init = ExprId("R5_init", 32)

◆ R6

list miasm.arch.arm.regs.R6 = regs32_expr[6]

◆ R6_init

miasm.arch.arm.regs.R6_init = ExprId("R6_init", 32)

◆ R7

list miasm.arch.arm.regs.R7 = regs32_expr[7]

◆ R7_init

miasm.arch.arm.regs.R7_init = ExprId("R7_init", 32)

◆ R8

list miasm.arch.arm.regs.R8 = regs32_expr[8]

◆ R8_init

miasm.arch.arm.regs.R8_init = ExprId("R8_init", 32)

◆ R9

list miasm.arch.arm.regs.R9 = regs32_expr[9]

◆ R9_init

miasm.arch.arm.regs.R9_init = ExprId("R9_init", 32)

◆ reg_cf

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

◆ reg_ge0

string miasm.arch.arm.regs.reg_ge0 = 'ge0'

◆ reg_ge1

string miasm.arch.arm.regs.reg_ge1 = 'ge1'

◆ reg_ge2

string miasm.arch.arm.regs.reg_ge2 = 'ge2'

◆ reg_ge3

string miasm.arch.arm.regs.reg_ge3 = 'ge3'

◆ reg_nf

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

◆ reg_of

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

◆ reg_zf

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

◆ regs32_expr

list miasm.arch.arm.regs.regs32_expr = [ExprId(x, 32) for x in regs32_str]

◆ regs32_str

list miasm.arch.arm.regs.regs32_str = ["R%d" % i for i in range(13)] + ["SP", "LR", "PC"]

◆ regs_flt_expr

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

◆ regs_init

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

◆ SP

list miasm.arch.arm.regs.SP = regs32_expr[13]

◆ SP_init

miasm.arch.arm.regs.SP_init = ExprId("SP_init", 32)

◆ zf

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

◆ zf_init

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