diff options
| author | Theofilos Augoustis <theofilos.augoustis@gmail.com> | 2025-10-14 09:09:29 +0000 |
|---|---|---|
| committer | Theofilos Augoustis <theofilos.augoustis@gmail.com> | 2025-10-14 09:09:29 +0000 |
| commit | 579cf1d03fb932083e6317967d1613d5c2587fb6 (patch) | |
| tree | 629f039935382a2a7391bce9253f6c9968159049 /src/miasm/arch/x86/disasm.py | |
| parent | 51c15d3ea2e16d4fc5f0f01a3b9befc66b1f982e (diff) | |
| download | focaccia-miasm-579cf1d03fb932083e6317967d1613d5c2587fb6.tar.gz focaccia-miasm-579cf1d03fb932083e6317967d1613d5c2587fb6.zip | |
Convert to src-layout ta/nix
Diffstat (limited to 'src/miasm/arch/x86/disasm.py')
| -rw-r--r-- | src/miasm/arch/x86/disasm.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/miasm/arch/x86/disasm.py b/src/miasm/arch/x86/disasm.py new file mode 100644 index 00000000..49b7158a --- /dev/null +++ b/src/miasm/arch/x86/disasm.py @@ -0,0 +1,30 @@ +from miasm.core.asmblock import disasmEngine +from miasm.arch.x86.arch import mn_x86 + + +cb_x86_funcs = [] + + +def cb_x86_disasm(mdis, cur_block, offset_to_dis): + for func in cb_x86_funcs: + func(mdis, cur_block, offset_to_dis) + + +class dis_x86(disasmEngine): + attrib = None + + def __init__(self, bs=None, **kwargs): + super(dis_x86, self).__init__(mn_x86, self.attrib, bs, **kwargs) + self.dis_block_callback = cb_x86_disasm + + +class dis_x86_16(dis_x86): + attrib = 16 + + +class dis_x86_32(dis_x86): + attrib = 32 + + +class dis_x86_64(dis_x86): + attrib = 64 |