1
0
mirror of https://github.com/simh/simh.git synced 2026-04-25 19:51:25 +00:00

SDS: Add Card Reader and Card Punch devices

This commit is contained in:
Ken Rector
2020-12-27 13:51:07 -08:00
committed by Mark Pizzolato
parent 541d1c3c90
commit 79878eb6ed
17 changed files with 1010 additions and 163 deletions

View File

@@ -58,10 +58,9 @@ DSPT lpt_tplt[] = { /* template */
{ 0, 0 }
};
DEVICE lpt_dev;
t_stat lpt_svc (UNIT *uptr);
t_stat lpt_reset (DEVICE *dptr);
t_stat lpt_attach (UNIT *uptr, char *cptr);
t_stat lpt_attach (UNIT *uptr, CONST char *cptr);
t_stat lpt_crctl (UNIT *uptr, int32 ch);
t_stat lpt_space (UNIT *uptr, int32 cnt);
t_stat lpt_status (UNIT *uptr);
@@ -245,7 +244,7 @@ if (uptr->flags & UNIT_ATT) { /* attached? */
uptr->pos = ftell (uptr->fileref); /* update position */
if (ferror (uptr->fileref)) { /* I/O error? */
lpt_end_op (CHF_EOR | CHF_ERR); /* set err, disc */
perror ("LPT I/O error"); /* print msg */
sim_perror ("LPT I/O error"); /* print msg */
clearerr (uptr->fileref);
return SCPE_IOERR; /* ret error */
}
@@ -324,7 +323,7 @@ return SCPE_OK;
/* Attach routine */
t_stat lpt_attach (UNIT *uptr, char *cptr)
t_stat lpt_attach (UNIT *uptr, CONST char *cptr)
{
lpt_ccp = 0; /* top of form */
return attach_unit (uptr, cptr);