From 8981c9336bd73b0fabe65f449ccbe5fb808bebdd Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Tue, 8 Jan 2019 05:22:16 +0000 Subject: Fix for bug #43634: keep sign of rA for ADD/SUB yielding 0 --- samples/Makefile.am | 4 ++-- samples/minus_zero.mixal | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 samples/minus_zero.mixal (limited to 'samples') 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 -- cgit v1.2.3