Exemple #1
0
t_stat ptr_boot (int32 unitno, DEVICE *dptr)
{
int32 dev;

dev = ptr_dib.select_code;                              /* get device no */
if (ibl_copy (ptr_rom, dev)) return SCPE_IERR;          /* copy boot to memory */
SR = (SR & IBL_OPT) | IBL_PTR | (dev << IBL_V_DEV);     /* set SR */
return SCPE_OK;
}
Exemple #2
0
t_stat ptr_boot (int32 unitno, DEVICE *dptr)
{
const int32 dev = ptr_dib.select_code;                  /* get device no */

if (ibl_copy (ptr_rom, dev, IBL_OPT,                    /* copy the boot ROM to memory and configure */
              IBL_PTR | IBL_SET_SC (dev)))              /*   the S register accordingly */
    return SCPE_IERR;                                   /* return an internal error if the copy failed */
else
    return SCPE_OK;
}
Exemple #3
0
t_stat dqc_boot (int32 unitno, DEVICE *dptr)
{
int32 dev;

if (unitno != 0) return SCPE_NOFNC;                     /* only unit 0 */
dev = dqd_dib.select_code;                              /* get data chan dev */
if (ibl_copy (dq_rom, dev)) return SCPE_IERR;           /* copy boot to memory */
SR = (SR & IBL_OPT) | IBL_DQ | (dev << IBL_V_DEV);      /* set SR */
return SCPE_OK;
}