0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-06-20 16:18:37 +03:00

Added JmpRm32Handler for JMP r/m32 instructions (opcode FF /4)

This commit is contained in:
bird_egop
2025-04-16 19:50:00 +03:00
parent bc6d32a725
commit 154e811d2d
3 changed files with 89 additions and 7 deletions

View File

@ -149,9 +149,14 @@ public class InstructionHandlerFactory
/// </summary>
private void RegisterJumpHandlers()
{
// JMP handlers
_handlers.Add(new JmpRel32Handler(_decoder));
_handlers.Add(new JmpRel8Handler(_decoder));
// JMP handlers for relative jumps
_handlers.Add(new JmpRel32Handler(_decoder)); // JMP rel32 (opcode E9)
_handlers.Add(new JmpRel8Handler(_decoder)); // JMP rel8 (opcode EB)
// JMP handler for register/memory operands
_handlers.Add(new JmpRm32Handler(_decoder)); // JMP r/m32 (opcode FF /4)
// Conditional jump handlers
_handlers.Add(new JgeRel8Handler(_decoder));
_handlers.Add(new ConditionalJumpHandler(_decoder));
_handlers.Add(new TwoByteConditionalJumpHandler(_decoder));