summaryrefslogtreecommitdiff
path: root/regs.pl
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-04-16 01:21:29 +0000
committerH. Peter Anvin <hpa@zytor.com>2007-04-16 01:21:29 +0000
commit88aa185d36436e20490448a0e8e03632fba16a8e (patch)
tree85cc8560fa29effd8a10426d491df4476b0bee20 /regs.pl
parent0ee014231f5d6047258bbe3cab70c69bff5623b0 (diff)
downloadnasm-88aa185d36436e20490448a0e8e03632fba16a8e.tar.gz
nasm-88aa185d36436e20490448a0e8e03632fba16a8e.tar.bz2
nasm-88aa185d36436e20490448a0e8e03632fba16a8e.zip
Use + instead of * for extension; it feels cleaner with the new meaning.
We used to use * to mean substitute in 0-7. Now it means that it should be incremented 8 times. Using a different character feels cleaner.
Diffstat (limited to 'regs.pl')
-rwxr-xr-xregs.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/regs.pl b/regs.pl
index c412c66..0910a1f 100755
--- a/regs.pl
+++ b/regs.pl
@@ -25,9 +25,9 @@ sub process_line($) {
$regval = toint($4);
$x86regno = toint($5);
- if ($reg =~ /\*$/) {
+ if ($reg =~ /[0-9]\+$/) {
$nregs = 8;
- $reg =~ s/\*$//;
+ $reg =~ s/\+$//;
} else {
$nregs = 1;
}