1
0
mirror of https://github.com/simh/simh.git synced 2026-02-23 15:43:15 +00:00

Merge remote-tracking branch 'github-simh/master' into KDP

This commit is contained in:
Mark Pizzolato
2013-06-02 17:34:30 -07:00
2 changed files with 4 additions and 1 deletions

View File

@@ -661,7 +661,7 @@ t_stat reason;
reason = attach_unit (uptr, cptr); /* attach file */ reason = attach_unit (uptr, cptr); /* attach file */
if (reason == SCPE_OK) { if (reason == SCPE_OK) {
sim_fseek (uptr->fileref, 0, SEEK_END); sim_fseek (uptr->fileref, 0, SEEK_END);
uptr->pos = sim_ftell (uptr->fileref); uptr->pos = (t_addr)sim_ftell (uptr->fileref);
} }
if (lpcsa & CSA_ONL) /* just file chg? */ if (lpcsa & CSA_ONL) /* just file chg? */
return reason; return reason;

View File

@@ -670,6 +670,9 @@ t_stat dup_set_DDCMP (int32 dup, t_bool state)
{ {
if ((dup < 0) || (dup >= dup_desc.lines)) if ((dup < 0) || (dup >= dup_desc.lines))
return SCPE_IERR; return SCPE_IERR;
dup_rxcsr[dup] &= ~RXCSR_M_STRSYN;
dup_rxcsr[dup] |= (state ? 0: RXCSR_M_STRSYN);
dup_parcsr[dup] &= ~PARCSR_M_NOCRC; dup_parcsr[dup] &= ~PARCSR_M_NOCRC;
dup_parcsr[dup] |= (state ? 0: PARCSR_M_NOCRC); dup_parcsr[dup] |= (state ? 0: PARCSR_M_NOCRC);
dup_parcsr[dup] &= ~PARCSR_M_DECMODE; dup_parcsr[dup] &= ~PARCSR_M_DECMODE;