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

Consolidated string instruction handling by enhancing StringInstructionHandler to handle both regular and REP/REPNE prefixed instructions

This commit is contained in:
bird_egop
2025-04-13 02:23:27 +03:00
parent efd9141b39
commit 79bf419c07
2 changed files with 51 additions and 8 deletions

View File

@ -305,8 +305,7 @@ public class InstructionHandlerFactory
/// </summary>
private void RegisterStringHandlers()
{
// Add String instruction handlers
_handlers.Add(new RepMovsHandler(_codeBuffer, _decoder, _length));
// Add String instruction handler that handles both regular and REP/REPNE prefixed string instructions
_handlers.Add(new StringInstructionHandler(_codeBuffer, _decoder, _length));
}