From ce41ac867ab0d27e0bf6e6cfa8e8fad6e02d624d Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Thu, 21 Mar 2013 12:05:10 -0700 Subject: [PATCH] Fixed the non-functional VAX 8600 boot and use of the console RL02 disk. --- VAX/vax860_stddev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/VAX/vax860_stddev.c b/VAX/vax860_stddev.c index 759166db..ea9a55e3 100644 --- a/VAX/vax860_stddev.c +++ b/VAX/vax860_stddev.c @@ -1102,8 +1102,8 @@ switch (rlcs_state) { if (sim_fseek (uptr->fileref, da, SEEK_SET)) return SCPE_IOERR; bcnt = sim_fread (rlcs_buf, sizeof (int16), RL_NUMBY, uptr->fileref); - if (bcnt != (sizeof (int16) * RL_NUMBY)) - return SCPE_IOERR; + for ( ; bcnt < RL_NUMBY; bcnt++) /* fill buffer */ + rlcs_buf[bcnt] = 0; } if (rlcs_bcnt < RL_NUMBY) { /* more data in buffer? */ cso_buf = rlcs_buf[rlcs_bcnt++]; /* return next word */ @@ -1133,7 +1133,7 @@ switch (rlcs_state) { if (sim_fseek (uptr->fileref, da, SEEK_SET)) return SCPE_IOERR; bcnt = sim_fwrite (rlcs_buf, sizeof (int16), RL_NUMBY, uptr->fileref); - if (bcnt != (sizeof (int16) * RL_NUMBY)) + if (bcnt != RL_NUMBY) return SCPE_IOERR; rlcs_state = RL_IDLE; /* now idle */ rlcs_bcnt = 0;