mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-12-12 05:41:21 +04:00
more refactoring
This commit is contained in:
@@ -36,11 +36,8 @@ public class CmpRm32R32Handler : InstructionHandler
|
||||
{
|
||||
// Set the mnemonic
|
||||
instruction.Mnemonic = "cmp";
|
||||
|
||||
// Save the original position to properly handle the ModR/M byte
|
||||
int originalPosition = Decoder.GetPosition();
|
||||
|
||||
if (originalPosition >= Length)
|
||||
|
||||
if (!Decoder.CanReadByte())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user