From: Michael Urman Date: Wed, 30 May 2001 07:26:28 +0000 (-0000) Subject: Added third opcode byte X-Git-Tag: v0.1.0~470 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a100f712c7837079c745382a999c98dd01703edf;p=yasm Added third opcode byte svn path=/trunk/yasm/; revision=41 --- diff --git a/modules/parsers/nasm/gen_instr.pl b/modules/parsers/nasm/gen_instr.pl index 2e2994fb..86d4bb2c 100755 --- a/modules/parsers/nasm/gen_instr.pl +++ b/modules/parsers/nasm/gen_instr.pl @@ -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]; diff --git a/src/gen_instr.pl b/src/gen_instr.pl index 2e2994fb..86d4bb2c 100755 --- a/src/gen_instr.pl +++ b/src/gen_instr.pl @@ -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]; diff --git a/src/parsers/nasm/gen_instr.pl b/src/parsers/nasm/gen_instr.pl index 2e2994fb..86d4bb2c 100755 --- a/src/parsers/nasm/gen_instr.pl +++ b/src/parsers/nasm/gen_instr.pl @@ -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];