diff --git a/sim_card.c b/sim_card.c index aebc759..128cca2 100644 --- a/sim_card.c +++ b/sim_card.c @@ -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;