Skip to content

Commit

Permalink
Fixed a bug in BSWAP
Browse files Browse the repository at this point in the history
  • Loading branch information
ergo720 committed Nov 17, 2023
1 parent b681bfd commit 74a1421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib86cpu/core/emitter/x64/jit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4020,7 +4020,7 @@ lc86_jit::bsr(decoded_instr *instr)
void
lc86_jit::bswap(decoded_instr *instr)
{
auto reg = GET_REG(instr->o[OPNUM_SINGLE].reg.value);
auto reg = GET_REG(OPNUM_SINGLE);
LD_R32(EAX, reg.val);
BSWAP(EAX);
ST_R32(reg.val, EAX);
Expand Down

0 comments on commit 74a1421

Please sign in to comment.