mirror of
https://github.com/simh/simh.git
synced 2026-04-30 05:25:05 +00:00
PDP11 and All VAXen: Support dynamic fetching of ROM or other boot code
Simulators built with DONT_USE_INTERNAL_ROM defined will not have hte binary of the needed ROM or boot components build into the simulator binaries. However, they will automatically and transparently fetch the neeeded ROM or boot code from the web when these binary files aren't available locally.
This commit is contained in:
@@ -3920,15 +3920,14 @@ else {
|
||||
return SCPE_OK;
|
||||
}
|
||||
|
||||
t_stat cpu_load_bootcode (const char *filename, const unsigned char *builtin_code, size_t size, t_bool rom, t_addr offset)
|
||||
t_stat cpu_load_bootcode (const char *filename, const unsigned char *builtin_code, size_t size, t_bool rom, t_addr offset, const char *filepath, unsigned int checksum)
|
||||
{
|
||||
char args[CBUFSIZE];
|
||||
t_stat r;
|
||||
int32 saved_sim_switches = sim_switches;
|
||||
|
||||
sim_messagef (SCPE_OK, "Loading boot code from %s%s\n", builtin_code ? "internal " : "", filename);
|
||||
if (builtin_code)
|
||||
sim_set_memory_load_file (builtin_code, size);
|
||||
sim_set_memory_load_file_ex (builtin_code, size, filepath, checksum);
|
||||
if (rom)
|
||||
sprintf (args, "-R %s", filename);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user