According to cat.s, fd 8 is standard error (not fd2!). I've updated
the a7out simulator to have STDERR on fd 8.
This commit is contained in:
@@ -50,6 +50,7 @@ sub load_code {
|
|||||||
# Set up two file open filehandles
|
# Set up two file open filehandles
|
||||||
$FD[0] = \*STDIN;
|
$FD[0] = \*STDIN;
|
||||||
$FD[1] = \*STDOUT;
|
$FD[1] = \*STDOUT;
|
||||||
|
$FD[8] = \*STDERR; # According to cat.s (uses d8 == 8)
|
||||||
|
|
||||||
# Open up the file
|
# Open up the file
|
||||||
open( my $IN, "<", $filename ) || die("Unable to open $filename: $!\n");
|
open( my $IN, "<", $filename ) || die("Unable to open $filename: $!\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user