summaryrefslogtreecommitdiffhomepage
path: root/mixlib
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2006-08-05 12:27:31 +0000
committerJose Antonio Ortega Ruiz <jao@gnu.org>2006-08-05 12:27:31 +0000
commit52cd64b7673affa9737ee6f486ea974c59f4d388 (patch)
treedb0624af6c1027e9b0c65e7cfcff3f4124bd0115 /mixlib
parent0fc982e4a8e2ef78bd46122a08fb630bc684a56d (diff)
downloadmdk-52cd64b7673affa9737ee6f486ea974c59f4d388.tar.gz
mdk-52cd64b7673affa9737ee6f486ea974c59f4d388.tar.bz2
Accept F-spec in NOP (with warning)
git-archimport-id: mdk@sv.gnu.org/mdk--devel--1--patch-12
Diffstat (limited to 'mixlib')
-rw-r--r--mixlib/mix_scanner.l1
1 files changed, 1 insertions, 0 deletions
diff --git a/mixlib/mix_scanner.l b/mixlib/mix_scanner.l
index 82b860e..2b3099b 100644
--- a/mixlib/mix_scanner.l
+++ b/mixlib/mix_scanner.l
@@ -437,6 +437,7 @@ wexpr {expr}({fpart})?(,{expr}({fpart})?)*
if ( val < 0 || val > MIX_BYTE_MAX )
RETURN_ERROR (MIX_PERR_INV_FSPEC, NULL);
if ( ins.opcode != mix_opMOVE
+ && ins.opcode != mix_opNOP
&& ( ins.opcode < mix_opJBUS || ins.opcode > mix_opJXx )
&& !mix_fspec_is_valid (mix_byte_new (val)) )
RETURN_ERROR (MIX_PERR_INV_FSPEC, NULL);