1
0
mirror of https://github.com/livingcomputermuseum/pdp7-unix.git synced 2026-04-25 20:01:34 +00:00

cas.s performs zero word writes: a7out was die-ing: make it a noop

This commit is contained in:
phil
2019-10-20 13:55:40 -04:00
parent b4be6be175
commit e46e22baa6

View File

@@ -1124,7 +1124,7 @@ sub sys_write {
my $count = $Mem[ $PC + 2 ];
my $end = ( $start + $count - 1 ) & MAXADDR;
die("sys_write: bad start/end addresses $start $end\n")
if ( $end < $start );
if ( $count != 0 && $end < $start );
printf( "write: %d words from %s to fd %d\n", $count, addr($start), $fd )
if ( ($debug) || ($singlestep) );