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)
|
||||
{
|
||||
d10 value = (Q_ITS)? UC_AIDITS: UC_AIDDEC;
|
||||
if( (apr_serial == -1) || (!Q_ITS && apr_serial < 4096) )
|
||||
d10 value = (Q_ITS)? UC_AIDITS: UC_AIDDEC;
|
||||
|
||||
if( (apr_serial == -1) || (!Q_ITS && apr_serial < 4096) )
|
||||
value |= (Q_ITS)? UC_SERITS: UC_SERDEC;
|
||||
else
|
||||
else
|
||||
value |= apr_serial;
|
||||
|
||||
Write (ea, value, prv);
|
||||
return FALSE;
|
||||
Write (ea, value, prv);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* Checked against KS10 ucode */
|
||||
|
@ -2435,29 +2436,29 @@ return SCPE_OK;
|
|||
|
||||
t_stat cpu_set_serial (UNIT *uptr, int32 val, char *cptr, void *desc)
|
||||
{
|
||||
int32 lnt;
|
||||
t_stat r;
|
||||
int32 lnt;
|
||||
t_stat r;
|
||||
|
||||
if (cptr == NULL) {
|
||||
if (cptr == NULL) {
|
||||
apr_serial = -1;
|
||||
return SCPE_OK;
|
||||
}
|
||||
lnt = (int32) get_uint (cptr, 10, 077777, &r);
|
||||
if ((r != SCPE_OK) || (lnt <= 0) || (!Q_ITS && lnt < 4096))
|
||||
}
|
||||
lnt = (int32) get_uint (cptr, 10, 077777, &r);
|
||||
if ((r != SCPE_OK) || (lnt <= 0) || (!Q_ITS && lnt < 4096))
|
||||
return SCPE_ARG;
|
||||
apr_serial = lnt & 077777;
|
||||
return SCPE_OK;
|
||||
apr_serial = lnt & 077777;
|
||||
return SCPE_OK;
|
||||
}
|
||||
|
||||
/* Show serial */
|
||||
|
||||
t_stat cpu_show_serial (FILE *st, UNIT *uptr, int32 val, void *desc)
|
||||
{
|
||||
fprintf (st, "Serial: " );
|
||||
if( (apr_serial == -1) || (!Q_ITS && apr_serial < 4096) ) {
|
||||
fprintf (st, "Serial: " );
|
||||
if( (apr_serial == -1) || (!Q_ITS && apr_serial < 4096) ) {
|
||||
fprintf (st, "%d (default)", (Q_ITS)? UC_SERITS: UC_SERDEC);
|
||||
return SCPE_OK;
|
||||
}
|
||||
fprintf (st, "%d", apr_serial);
|
||||
return SCPE_OK;
|
||||
}
|
||||
fprintf (st, "%d", apr_serial);
|
||||
return SCPE_OK;
|
||||
}
|
||||
|
|
|
@ -376,17 +376,17 @@ return SCPE_OK;
|
|||
else if (paper)
|
||||
davfu_action;
|
||||
else print_xlate;
|
||||
}
|
||||
}
|
||||
else if (paper) {
|
||||
if (xlate || delim || delim_hold)
|
||||
davfu_action;
|
||||
else print_input;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (xlate || delim || delim_hold)
|
||||
print_xlate;
|
||||
else print_input;
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
t_stat lp20_svc (UNIT *uptr)
|
||||
|
@ -660,9 +660,9 @@ t_stat reason;
|
|||
|
||||
reason = attach_unit (uptr, cptr); /* attach file */
|
||||
if (reason == SCPE_OK) {
|
||||
sim_fseek (uptr->fileref, 0, SEEK_END);
|
||||
uptr->pos = ftell (uptr->fileref);
|
||||
}
|
||||
sim_fseek (uptr->fileref, 0, SEEK_END);
|
||||
uptr->pos = sim_ftell (uptr->fileref);
|
||||
}
|
||||
if (lpcsa & CSA_ONL) /* just file chg? */
|
||||
return reason;
|
||||
if (sim_is_active (&lp20_unit)) /* busy? no int */
|
||||
|
|
Loading…
Add table
Reference in a new issue