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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user