summaryrefslogtreecommitdiffhomepage
path: root/samples
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2019-01-08 05:22:16 +0000
committerJose Antonio Ortega Ruiz <jao@gnu.org>2019-01-08 05:22:16 +0000
commit8981c9336bd73b0fabe65f449ccbe5fb808bebdd (patch)
treef8ce47c4cda988788b1fdb353a30416a086b75da /samples
parentcb2780e435aede4e13653af62a1758e33bd4527c (diff)
downloadmdk-8981c9336bd73b0fabe65f449ccbe5fb808bebdd.tar.gz
mdk-8981c9336bd73b0fabe65f449ccbe5fb808bebdd.tar.bz2
Fix for bug #43634: keep sign of rA for ADD/SUB yielding 0
Diffstat (limited to 'samples')
-rw-r--r--samples/Makefile.am4
-rw-r--r--samples/minus_zero.mixal8
2 files changed, 10 insertions, 2 deletions
diff --git a/samples/Makefile.am b/samples/Makefile.am
index 357b5f3..c1dcfa6 100644
--- a/samples/Makefile.am
+++ b/samples/Makefile.am
@@ -1,6 +1,6 @@
## Process this file with automake to produce Makefile.in
-# Copyright (C) 2000, 2001, 2004, 2006, 2013 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2001, 2004, 2006, 2013, 2019 Free Software Foundation, Inc.
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
@@ -14,4 +14,4 @@ SUBDIRS = tests
EXTRA_DIST = primes.result hello.mixal primes.mixal echo.mixal \
permutations.mixal permutations.cardrd isains.mixal \
- elevator.mixal mystery.mixal
+ elevator.mixal mystery.mixal minus_zero.mixal
diff --git a/samples/minus_zero.mixal b/samples/minus_zero.mixal
new file mode 100644
index 0000000..9adb914
--- /dev/null
+++ b/samples/minus_zero.mixal
@@ -0,0 +1,8 @@
+ ORIG 3000
+START ENTA 1
+ STA 1000
+ LDA 0
+ DECA 1
+ ADD 1000
+ HLT
+ END 3000