From d6d4c9b8146083fe075fd29b98959ce8a9ebffd0 Mon Sep 17 00:00:00 2001 From: Warren Toomey Date: Fri, 26 Feb 2016 22:37:03 +1000 Subject: [PATCH] According to cat.s, fd 8 is standard error (not fd2!). I've updated the a7out simulator to have STDERR on fd 8. --- tools/a7out | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/a7out b/tools/a7out index c2880b8..986b645 100755 --- a/tools/a7out +++ b/tools/a7out @@ -50,6 +50,7 @@ sub load_code { # Set up two file open filehandles $FD[0] = \*STDIN; $FD[1] = \*STDOUT; + $FD[8] = \*STDERR; # According to cat.s (uses d8 == 8) # Open up the file open( my $IN, "<", $filename ) || die("Unable to open $filename: $!\n");