Browse Source

Update isImmediate check

Updated to only return true for integers.
ApisNecros 4 months ago
parent
commit
b973b3ebb0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      yaict.pl

+ 1 - 1
yaict.pl

@@ -132,7 +132,7 @@ sub parseOpcodeAndParams
 # Parameter is considered Position mode if it's prefixed with "0d"
 sub isImmediate
 {
-    return !(shift =~ /^0d/);
+    return shift =~ /^-?\d+$/;
 }
 
 # Check if a parameter