Changed some spaces and indentations
This commit is contained in:
parent
3e25042017
commit
39c794292d
2 changed files with 25 additions and 24 deletions
|
@ -2109,14 +2109,15 @@ return;
|
||||||
|
|
||||||
t_bool aprid (a10 ea, int32 prv)
|
t_bool aprid (a10 ea, int32 prv)
|
||||||
{
|
{
|
||||||
d10 value = (Q_ITS)? UC_AIDITS: UC_AIDDEC;
|
d10 value = (Q_ITS)? UC_AIDITS: UC_AIDDEC;
|
||||||
if( (apr_serial == -1) || (!Q_ITS && apr_serial < 4096) )
|
|
||||||
|
if( (apr_serial == -1) || (!Q_ITS && apr_serial < 4096) )
|
||||||
value |= (Q_ITS)? UC_SERITS: UC_SERDEC;
|
value |= (Q_ITS)? UC_SERITS: UC_SERDEC;
|
||||||
else
|
else
|
||||||
value |= apr_serial;
|
value |= apr_serial;
|
||||||
|
|
||||||
Write (ea, value, prv);
|
Write (ea, value, prv);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Checked against KS10 ucode */
|
/* Checked against KS10 ucode */
|
||||||
|
@ -2435,29 +2436,29 @@ return SCPE_OK;
|
||||||
|
|
||||||
t_stat cpu_set_serial (UNIT *uptr, int32 val, char *cptr, void *desc)
|
t_stat cpu_set_serial (UNIT *uptr, int32 val, char *cptr, void *desc)
|
||||||
{
|
{
|
||||||
int32 lnt;
|
int32 lnt;
|
||||||
t_stat r;
|
t_stat r;
|
||||||
|
|
||||||
if (cptr == NULL) {
|
if (cptr == NULL) {
|
||||||
apr_serial = -1;
|
apr_serial = -1;
|
||||||
return SCPE_OK;
|
return SCPE_OK;
|
||||||
}
|
}
|
||||||
lnt = (int32) get_uint (cptr, 10, 077777, &r);
|
lnt = (int32) get_uint (cptr, 10, 077777, &r);
|
||||||
if ((r != SCPE_OK) || (lnt <= 0) || (!Q_ITS && lnt < 4096))
|
if ((r != SCPE_OK) || (lnt <= 0) || (!Q_ITS && lnt < 4096))
|
||||||
return SCPE_ARG;
|
return SCPE_ARG;
|
||||||
apr_serial = lnt & 077777;
|
apr_serial = lnt & 077777;
|
||||||
return SCPE_OK;
|
return SCPE_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Show serial */
|
/* Show serial */
|
||||||
|
|
||||||
t_stat cpu_show_serial (FILE *st, UNIT *uptr, int32 val, void *desc)
|
t_stat cpu_show_serial (FILE *st, UNIT *uptr, int32 val, void *desc)
|
||||||
{
|
{
|
||||||
fprintf (st, "Serial: " );
|
fprintf (st, "Serial: " );
|
||||||
if( (apr_serial == -1) || (!Q_ITS && apr_serial < 4096) ) {
|
if( (apr_serial == -1) || (!Q_ITS && apr_serial < 4096) ) {
|
||||||
fprintf (st, "%d (default)", (Q_ITS)? UC_SERITS: UC_SERDEC);
|
fprintf (st, "%d (default)", (Q_ITS)? UC_SERITS: UC_SERDEC);
|
||||||
return SCPE_OK;
|
return SCPE_OK;
|
||||||
}
|
}
|
||||||
fprintf (st, "%d", apr_serial);
|
fprintf (st, "%d", apr_serial);
|
||||||
return SCPE_OK;
|
return SCPE_OK;
|
||||||
}
|
}
|
||||||
|
|
|
@ -661,8 +661,8 @@ 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 = ftell (uptr->fileref);
|
uptr->pos = sim_ftell (uptr->fileref);
|
||||||
}
|
}
|
||||||
if (lpcsa & CSA_ONL) /* just file chg? */
|
if (lpcsa & CSA_ONL) /* just file chg? */
|
||||||
return reason;
|
return reason;
|
||||||
if (sim_is_active (&lp20_unit)) /* busy? no int */
|
if (sim_is_active (&lp20_unit)) /* busy? no int */
|
||||||
|
|
Loading…
Add table
Reference in a new issue