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

SIM_CARD: Updated comments. Fixed bug with reading DOS files.

This commit is contained in:
Richard Cornwell
2017-01-22 23:04:35 -05:00
parent 2faa1df8ce
commit cda2a5dd8c
2 changed files with 4 additions and 6 deletions

View File

@@ -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;

View File

@@ -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