1
0
mirror of https://github.com/open-simh/simh.git synced 2026-04-29 21:27:07 +00:00

SCP: Clean up WEAK definition and rework deprecated references to sim_vm_init

As discussed in #794
This commit is contained in:
Mark Pizzolato
2020-01-29 12:30:25 -08:00
parent ca4b733883
commit 8a858c181d
32 changed files with 59 additions and 51 deletions

View File

@@ -6159,7 +6159,10 @@ static t_stat sim_instr_mmu (void) {
static t_stat cpu_reset(DEVICE *dptr) {
int32 i;
sim_vm_is_subroutine_call = cpu_is_pc_a_subroutine_call;
if (sim_vm_is_subroutine_call == NULL) { /* First time reset? */
sim_vm_is_subroutine_call = cpu_is_pc_a_subroutine_call;
altairz80_init();
}
AF_S = AF1_S = 0;
BC_S = DE_S = HL_S = 0;
BC1_S = DE1_S = HL1_S = 0;
@@ -6802,8 +6805,6 @@ void altairz80_init(void) {
/* altairz80_print_tables(); */
}
WEAK void (*sim_vm_init) (void) = &altairz80_init;
/* This is the binary loader. The input file is considered to be a string of
literal bytes with no special format. The load starts at the current value
of the PC if no start address is given. If the input string ends with ROM