summaryrefslogtreecommitdiff
path: root/insns.pl
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-05-20 10:48:22 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-05-20 10:48:22 -0700
commit0fc86cca1fec0365f529a15fb1268f0e5c324744 (patch)
treef12fc3f9c48d93be50557b2fa63afa43612dfc0d /insns.pl
parent8491986e699e7d14c9160f26444f002b042fcfd8 (diff)
downloadnasm-0fc86cca1fec0365f529a15fb1268f0e5c324744.tar.gz
nasm-0fc86cca1fec0365f529a15fb1268f0e5c324744.tar.bz2
nasm-0fc86cca1fec0365f529a15fb1268f0e5c324744.zip
insns.pl: fix regex subgroup of /is4= codes
The argument is now $1, not $2...
Diffstat (limited to 'insns.pl')
-rw-r--r--insns.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/insns.pl b/insns.pl
index fdeeaa5..713a416 100644
--- a/insns.pl
+++ b/insns.pl
@@ -681,7 +681,7 @@ sub byte_code_compile($) {
push(@codes, 0172, ($oppos{'s'} << 3)+$oppos{'i'});
$prefix_ok = 0;
} elsif ($op =~ /^\/is4\=([0-9]+)$/) {
- my $imm = $2;
+ my $imm = $1;
if (!defined($oppos{'s'})) {
die "$0: $line: $op without 's' operand\n";
}