1
0
mirror of https://github.com/rcornwell/sims.git synced 2026-01-19 17:38:13 +00:00

KA10: Updated to new sim_card interface.

This commit is contained in:
Richard Cornwell 2018-07-27 11:13:43 -04:00
parent 0638795963
commit 75c17b41c8
2 changed files with 8 additions and 8 deletions

View File

@ -197,15 +197,15 @@ cp_srv(UNIT *uptr) {
uptr->u3 &= ~(PUNCH_ON|CARD_IN_PUNCH);
uptr->u3 |= END_CARD;
switch(sim_punch_card(uptr, image)) {
case SCPE_EOF:
case SCPE_UNATT:
case CDSE_EOF:
case CDSE_EMPTY:
uptr->u3 |= PICK_FAIL|TROUBLE;
break;
/* If we get here, something is wrong */
case SCPE_IOERR:
case CDSE_ERROR:
uptr->u3 |= EJECT_FAIL|TROUBLE;
break;
case SCPE_OK:
case CDSE_OK:
break;
}
if ((uptr->u3 & (TROUBLE|TROUBLE_EN)) == (TROUBLE|TROUBLE_EN))

View File

@ -175,19 +175,19 @@ cr_srv(UNIT *uptr) {
/* Check if new card requested. */
if ((uptr->u3 & (READING|CARD_IN_READ)) == READING) {
switch(sim_read_card(uptr, image)) {
case SCPE_EOF:
case CDSE_EOF:
uptr->u3 |= END_FILE;
if (uptr->u3 & TROUBLE_EN)
set_interrupt(CR_DEVNUM, uptr->u3);
return SCPE_OK;
case SCPE_UNATT:
case CDSE_EMPTY:
return SCPE_OK;
case SCPE_IOERR:
case CDSE_ERROR:
uptr->u3 |= TROUBLE;
if (uptr->u3 & TROUBLE_EN)
set_interrupt(CR_DEVNUM, uptr->u3);
return SCPE_OK;
case SCPE_OK:
case CDSE_OK:
uptr->u3 |= CARD_IN_READ;
break;
}