mirror of
https://github.com/simh/simh.git
synced 2026-04-25 03:34:34 +00:00
PDP11: Change all boot routines to use WrMemW() to access memory
This commit is contained in:
@@ -691,9 +691,9 @@ t_stat rs_boot (int32 unitno, DEVICE *dptr)
|
||||
size_t i;
|
||||
|
||||
for (i = 0; i < BOOT_LEN; i++)
|
||||
M[(BOOT_START >> 1) + i] = boot_rom[i];
|
||||
M[BOOT_UNIT >> 1] = unitno & (RS_NUMDR - 1);
|
||||
M[BOOT_CSR >> 1] = mba_get_csr (rs_dib.ba) & DMASK;
|
||||
WrMemW (BOOT_START + (2 * i), boot_rom[i]);
|
||||
WrMemW (BOOT_UNIT, unitno & (RS_NUMDR - 1));
|
||||
WrMemW (BOOT_CSR, mba_get_csr (rs_dib.ba) & DMASK);
|
||||
cpu_set_boot (BOOT_ENTRY);
|
||||
return SCPE_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user