From cda2a5dd8c425e4fb9bbd853f4a5e6d9d283ed81 Mon Sep 17 00:00:00 2001 From: Richard Cornwell Date: Sun, 22 Jan 2017 23:04:35 -0500 Subject: [PATCH] SIM_CARD: Updated comments. Fixed bug with reading DOS files. --- sim_card.c | 6 +++--- sim_card.h | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/sim_card.c b/sim_card.c index 51dc06b..945c9dc 100644 --- a/sim_card.c +++ b/sim_card.c @@ -1,4 +1,4 @@ -/* Card read/punch routines for 7000 simulators. +/* Generic Card read/punch routines for simulators. Copyright (c) 2005, Richard Cornwell @@ -680,10 +680,10 @@ sim_read_card(UNIT * uptr) while (data->cbuff[i] != '\n' && data->cbuff[i] != '\r' && i < data->len) { i++; } - if (data->cbuff[i] == '\n') - i++; if (data->cbuff[i] == '\r') i++; + if (data->cbuff[i] == '\n') + i++; sim_debug(DEBUG_CARD, dptr, "]\n"); break; diff --git a/sim_card.h b/sim_card.h index 2d95017..8cdd5a7 100644 --- a/sim_card.h +++ b/sim_card.h @@ -1,4 +1,4 @@ -/* Card read/punch routines for 7000 simulators. +/* Generic Card read/punch routines for simulators. Copyright (c) 2005, Richard Cornwell @@ -58,8 +58,6 @@ Auto output format is ASCII if card has only printable characters or card format binary. */ - - #ifndef SIM_CARD_H_ #define SIM_CARD_H_ 0