Commit Graph

7 Commits

Author SHA1 Message Date
6908fb3c69 chore: use lower letters for disasm output 2025-05-13 14:20:25 +09:00
4443f84297 chore: dedup u8/u16 byte/word immediate type 2025-05-13 12:44:00 +09:00
27b39ee94a fix: correctly parse word instead of byte for GPR 2025-05-13 12:35:58 +09:00
47a002cd79 chore: add macros for ModRM GPR Instruction parsing 2025-05-13 12:23:33 +09:00
c71ddb4419 fix: rename OperandSize to OperandWidth 2025-05-13 12:17:25 +09:00
a25e0a3890 ft: fixed modrm target calculation
While implementing some more mnemonics and testing
them, it was clear that modrm parsing was wrong.
Now reg to reg and immediates, together with
GPR1 interpretation should work as expected.

GPR1 interpretation can currently not be merged
into the modrm function, as with the current
abstraction the REG needs to select the correct
mnemonic, for which we need to also know the second
operand, which will only be parsed afterwards.
But this will be incorporated at some point, this
just marks the first working state.
2025-05-13 12:07:22 +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