1
0
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:
Mark Pizzolato
2018-09-09 19:08:33 -07:00
parent 488b91a62c
commit ac40e513cb
19 changed files with 62 additions and 61 deletions

View File

@@ -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;
}