summaryrefslogtreecommitdiffhomepage
path: root/samples/tests
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2019-01-08 18:02:00 +0000
committerJose Antonio Ortega Ruiz <jao@gnu.org>2019-01-08 18:02:00 +0000
commitab5d045fa8811a9d191c40bcbff996dfca8a2e32 (patch)
treea5ad2666d0461729296dff122378e4ebb653adb8 /samples/tests
parent8981c9336bd73b0fabe65f449ccbe5fb808bebdd (diff)
downloadmdk-ab5d045fa8811a9d191c40bcbff996dfca8a2e32.tar.gz
mdk-ab5d045fa8811a9d191c40bcbff996dfca8a2e32.tar.bz2
Fix for mixasm infinite loop on invalid F-specs (bug #32452)
Thanks to Sascha Wilde.
Diffstat (limited to 'samples/tests')
-rw-r--r--samples/tests/Makefile.am4
-rw-r--r--samples/tests/dup_f.mixal3
-rw-r--r--samples/tests/minus_zero.mixal8
3 files changed, 13 insertions, 2 deletions
diff --git a/samples/tests/Makefile.am b/samples/tests/Makefile.am
index b75454c..6c15e64 100644
--- a/samples/tests/Makefile.am
+++ b/samples/tests/Makefile.am
@@ -1,6 +1,6 @@
## Process this file with automake to produce Makefile.in
-# Copyright (C) 2006 by Free Software Foundation, Inc.
+# Copyright (C) 2006, 2019 by Free Software Foundation, Inc.
#
# This file is free software; as a special exception the author gives
@@ -12,6 +12,6 @@
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
EXTRA_DIST = bt.mixal cbp.mixal ldan.mixal lockonw.mixal negwrite.mixal \
+ minus_zero.mixal dup_f.mixal \
stress0.mixal stress1.mixal stress2.mixal stress4.mixal \
stress5.mixal stress6.mixal
-
diff --git a/samples/tests/dup_f.mixal b/samples/tests/dup_f.mixal
new file mode 100644
index 0000000..63abc7c
--- /dev/null
+++ b/samples/tests/dup_f.mixal
@@ -0,0 +1,3 @@
+START LDA 1(4:4),1(5:5)
+ HLT
+ END START
diff --git a/samples/tests/minus_zero.mixal b/samples/tests/minus_zero.mixal
new file mode 100644
index 0000000..9adb914
--- /dev/null
+++ b/samples/tests/minus_zero.mixal
@@ -0,0 +1,8 @@
+ ORIG 3000
+START ENTA 1
+ STA 1000
+ LDA 0
+ DECA 1
+ ADD 1000
+ HLT
+ END 3000