mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-08-07 03:16:39 +03:00
more refactoring
This commit is contained in:
@@ -38,10 +38,7 @@ public class SubAxImm16Handler : InstructionHandler
|
||||
// Set the mnemonic
|
||||
instruction.Mnemonic = "sub";
|
||||
|
||||
int position = Decoder.GetPosition();
|
||||
|
||||
// Check if we have enough bytes for the immediate value
|
||||
if (position + 1 >= Length)
|
||||
if (!Decoder.CanReadUShort())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user