Skip to content

Commit

Permalink
Merge pull request #131 from anthonyprintup/master
Browse files Browse the repository at this point in the history
Added missing handlers for LOOP/LOOPcc when building operands
  • Loading branch information
ZehMatt authored Jun 17, 2024
2 parents e0a6448 + 55ed9fc commit 8ffedf9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zasm/src/zasm/src/encoder/encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ namespace zasm

// NOTE: Workaround for some instructions that only accept rel8
if (state.req.mnemonic == ZYDIS_MNEMONIC_JCXZ || state.req.mnemonic == ZYDIS_MNEMONIC_JECXZ
|| state.req.mnemonic == ZYDIS_MNEMONIC_JKNZD)
|| state.req.mnemonic == ZYDIS_MNEMONIC_JKNZD || state.req.mnemonic == ZYDIS_MNEMONIC_LOOP
|| state.req.mnemonic == ZYDIS_MNEMONIC_LOOPE || state.req.mnemonic == ZYDIS_MNEMONIC_LOOPNE)
{
kTempRel = kTemporaryRel8Value;
}
Expand Down

0 comments on commit 8ffedf9

Please sign in to comment.