Commit Graph

8 Commits

Author SHA1 Message Date
322a276617 fix: dont interpret padding as instructions
a.out padds the text section with 0-bytes, which where interpreted
as 0x00 0x00 instruction and occasionally as a single 0x00 byte. Add
logic to ignore single 0x00 bytes and to remove dangling 0x00 0x00
instructions at the end of the instruction vec, so only the 'actual'
instructions are presented in the end. Also adjust visibility of
methods, so only the truncated instructions will ever be presented.

Of course, this could remove an actual `0x00 0x00` instruction from the
end, but they would not have any effect on execution anyway.
2025-05-27 11:13:16 +09:00
5c8702fb95 fix: only push raw instruction once 2025-05-27 09:37:57 +09:00
058afeb7ba chore: split up some structs and add comments 2025-05-20 18:59:09 +09:00
beccff0d79 chore: update metadata 2025-05-20 11:22:35 +09:00
f7446c14b1 chore: move register into own module 2025-05-13 16:23:47 +09:00
51b28b3bac ft: introduce modrm macro for leaner matching
All instructions which use a modrm instruction
for memory reads from or into a register can
make use of this macro
2025-05-12 19:53:25 +09:00
1c7d3f3adc fix: cleanup structs into correct files 2025-05-08 10:05:09 +09:00
2af4578c8b ft: initial disasm of example data
This only contains two instructions of which I know
the correct output.
2025-05-07 15:48:44 +09:00