]> granicus.if.org Git - yasm/commitdiff
Added third opcode byte
authorMichael Urman <mu@tortall.net>
Wed, 30 May 2001 07:26:28 +0000 (07:26 -0000)
committerMichael Urman <mu@tortall.net>
Wed, 30 May 2001 07:26:28 +0000 (07:26 -0000)
svn path=/trunk/yasm/; revision=41

modules/parsers/nasm/gen_instr.pl
src/gen_instr.pl
src/parsers/nasm/gen_instr.pl

index 2e2994fb712d22feb6e96143da00bd39fd15508e..86d4bb2c6147f4c4e798078525257255ab0f8523 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/perl -w
-# $Id: gen_instr.pl,v 1.5 2001/05/30 07:25:13 mu Exp $
+# $Id: gen_instr.pl,v 1.6 2001/05/30 07:26:28 mu Exp $
 # Generates bison.y and token.l from instrs.dat for YASM
 #
 #    Copyright (C) 2001  Michael Urman
@@ -342,6 +342,8 @@ sub output_yacc ($@)
 
                    # opcode piece 2 (if not attached)
                    push @args, "0," if $inst->[OPCODE] !~ m/,/o;
+                   # opcode piece 3 (if not attached)
+                   push @args, "0," if $inst->[OPCODE] !~ m/,.*,/o;
 
                    # effective addresses
                    push @args, $inst->[EFFADDR];
index 2e2994fb712d22feb6e96143da00bd39fd15508e..86d4bb2c6147f4c4e798078525257255ab0f8523 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/perl -w
-# $Id: gen_instr.pl,v 1.5 2001/05/30 07:25:13 mu Exp $
+# $Id: gen_instr.pl,v 1.6 2001/05/30 07:26:28 mu Exp $
 # Generates bison.y and token.l from instrs.dat for YASM
 #
 #    Copyright (C) 2001  Michael Urman
@@ -342,6 +342,8 @@ sub output_yacc ($@)
 
                    # opcode piece 2 (if not attached)
                    push @args, "0," if $inst->[OPCODE] !~ m/,/o;
+                   # opcode piece 3 (if not attached)
+                   push @args, "0," if $inst->[OPCODE] !~ m/,.*,/o;
 
                    # effective addresses
                    push @args, $inst->[EFFADDR];
index 2e2994fb712d22feb6e96143da00bd39fd15508e..86d4bb2c6147f4c4e798078525257255ab0f8523 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/perl -w
-# $Id: gen_instr.pl,v 1.5 2001/05/30 07:25:13 mu Exp $
+# $Id: gen_instr.pl,v 1.6 2001/05/30 07:26:28 mu Exp $
 # Generates bison.y and token.l from instrs.dat for YASM
 #
 #    Copyright (C) 2001  Michael Urman
@@ -342,6 +342,8 @@ sub output_yacc ($@)
 
                    # opcode piece 2 (if not attached)
                    push @args, "0," if $inst->[OPCODE] !~ m/,/o;
+                   # opcode piece 3 (if not attached)
+                   push @args, "0," if $inst->[OPCODE] !~ m/,.*,/o;
 
                    # effective addresses
                    push @args, $inst->[EFFADDR];