Skip to content

Commit

Permalink
BREAKING: refactor(reg_convert): use r16 instead of r8
Browse files Browse the repository at this point in the history
need to test that thoroughly
  • Loading branch information
es3n1n committed Feb 12, 2024
1 parent 4884051 commit 488a0d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/easm/misc/reg_convert.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace easm::reg_convert {
}

inline zasm::Reg::Id gp64_to_gp8(const zasm::Reg::Id reg_id) {
const auto result = zasm::x86::Gp(reg_id).r8();
const auto result = zasm::x86::Gp(reg_id).r16(); // \fixme @es3n1n: We can't just straight use r8. see Vol.2B 4 - 35 => no ah/bh/ch/dh with REX
assert(result.isValid());
return result.getId();
}
Expand Down

0 comments on commit 488a0d3

Please sign in to comment.