1
0
mirror of https://github.com/rcornwell/sims.git synced 2026-04-12 15:07:12 +00:00

Sim_Card: Fix error in handling CBN and BCD EOF

This commit is contained in:
Richard Cornwell
2017-06-11 23:38:04 -04:00
parent 63f1924a7d
commit 3c37b6da0a

View File

@@ -709,7 +709,7 @@ sim_read_card(UNIT * uptr)
sim_debug(DEBUG_CARD, dptr, "cbn\n");
/* Check if first character is a tape mark */
if (((uint8)data->cbuff[0]) == 0217 &&
(size == 1 || (((uint8)data->cbuff[0]) & 0200) != 0)) {
(size == 1 || (((uint8)data->cbuff[1]) & 0200) != 0)) {
i = 1;
r = SCPE_EOF;
break;
@@ -751,7 +751,7 @@ sim_read_card(UNIT * uptr)
sim_debug(DEBUG_CARD, dptr, "bcd [");
/* Check if first character is a tape mark */
if (((uint8)data->cbuff[0]) == 0217 &&
(size == 1 || (((uint8)data->cbuff[0]) & 0200) != 0)) {
(size == 1 || (((uint8)data->cbuff[1]) & 0200) != 0)) {
i = 1;
r = SCPE_EOF;
break;