diff options
author | iximeow <me@iximeow.net> | 2023-12-15 17:26:59 -0800 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2023-12-15 17:26:59 -0800 |
commit | 003183a4ce31cfb718f4e4083d32c845352c2321 (patch) | |
tree | e6931eb0d6baa7eaa99a2386e8d13a6037fd421f /test/real_mode/operand.rs | |
parent | 792eb993a87fab799b3a6659c7750f2221608cbf (diff) |
more RegSpec constructor validation, fix bug in x86_64 1b reg specs
* the first four 1-byte registers, `al`, `cl`, `dl`, `bl`, can be
constructed in two ways that produce "identical" `RegSpec` that are..
not.
e.g. `RegSpec::al() != Regspec::rb(0)` even though
`RegSpec::al().name() == RegSpec::rb(0).name()`.
this corrects the `rb` constructor at least, but instructions like
`4830c0` and `30c0` still produce incompatible versions of `al`.
* also fix register numbering used explicit qword-sized RegSpec
constructors, r12 and r13 used to produce r8 and r9
Diffstat (limited to 'test/real_mode/operand.rs')
0 files changed, 0 insertions, 0 deletions