Miasm2
 All Classes Namespaces Files Functions Variables Typedefs Properties Macros
disasm.py
Go to the documentation of this file.
1 from miasm2.core.asmbloc import asm_constraint, disasmEngine
2 from miasm2.arch.aarch64.arch import mn_aarch64
3 
4 cb_aarch64_funcs = []
5 
6 
7 def cb_aarch64_disasm(mn, attrib, pool_bin, cur_bloc, offsets_to_dis, symbol_pool):
8  for func in cb_aarch64_funcs:
9  func(mn, attrib, pool_bin, cur_bloc, offsets_to_dis, symbol_pool)
10 
11 
13  attrib = "b"
14  def __init__(self, bs=None, **kwargs):
15  super(dis_aarch64b, self).__init__(
16  mn_aarch64, self.attrib, bs,
17  dis_bloc_callback = cb_aarch64_disasm,
18  **kwargs)
19 
20 
22  attrib = "l"
23  def __init__(self, bs=None, **kwargs):
24  super(dis_aarch64l, self).__init__(
25  mn_aarch64, self.attrib, bs,
26  dis_bloc_callback = cb_aarch64_disasm,
27  **kwargs)