aboutsummaryrefslogtreecommitdiff
path: root/src/generic/mod.rs
AgeCommit message (Collapse)Author
2023-01-02add a `generic` module for x86 disassemblyiximeow
this module generally attempts to decode as 64-bit x86 instructions, on the assumption they are the most likely-desired instructions, falling back to 32-bit and then 16-bit decoding, in order. translation from a 64-bit `long_mode::Instruction` to `generic::Instruction` is close to free, where `protected_mode::Instruction` and `real_mode::Instruction` may be a little more costly in time but should still not be too bad. docs still need much touching up. most docs reference the `long_mode` structures and enums they're strongly inspired by.