mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-06-20 16:18:37 +03:00
Fixed byte order handling in SUB instruction handlers and updated tests
Implemented SUB r32, r/m32 instruction handlers and tests Added comprehensive tests for Push/Pop, Xchg, Sub instructions and enhanced segment override tests
This commit is contained in:
@ -77,6 +77,7 @@ public class InstructionHandlerFactory
|
||||
RegisterFloatingPointHandlers();
|
||||
RegisterStringHandlers();
|
||||
RegisterMovHandlers();
|
||||
RegisterSubHandlers(); // Register SUB handlers
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -367,6 +368,16 @@ public class InstructionHandlerFactory
|
||||
_handlers.Add(new AndEaxImmHandler(_codeBuffer, _decoder, _length));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Registers all SUB instruction handlers
|
||||
/// </summary>
|
||||
private void RegisterSubHandlers()
|
||||
{
|
||||
// Add SUB register/memory handlers
|
||||
_handlers.Add(new Sub.SubRm32R32Handler(_codeBuffer, _decoder, _length));
|
||||
_handlers.Add(new Sub.SubR32Rm32Handler(_codeBuffer, _decoder, _length));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the handler that can decode the given opcode
|
||||
/// </summary>
|
||||
|
Reference in New Issue
Block a user