From 3d6dd2f3ad09d94e51a5a1a12ec3393dd9b4126b Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Thu, 4 Feb 2016 10:32:14 -0800 Subject: [PATCH] VAX: Fix NEXT command to also work when Virtual Memory is enabled. Initial testing was only done with boot code before the virtual addressing was enabled. --- VAX/vax_cpu.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/VAX/vax_cpu.c b/VAX/vax_cpu.c index 945d34f0..70f43a9b 100644 --- a/VAX/vax_cpu.c +++ b/VAX/vax_cpu.c @@ -3232,13 +3232,18 @@ t_bool cpu_is_pc_a_subroutine_call (t_addr **ret_addrs) static t_addr returns[MAX_SUB_RETURN_SKIP+1] = {0}; static t_bool caveats_displayed = FALSE; int i; +int32 saved_sim_switches = sim_switches; if (!caveats_displayed) { caveats_displayed = TRUE; sim_printf ("%s", cpu_next_caveats); } -if (SCPE_OK != get_aval (PC, &cpu_dev, &cpu_unit)) /* get data */ +sim_switches |= SWMASK('V'); +if (SCPE_OK != get_aval (PC, &cpu_dev, &cpu_unit)) {/* get data */ + sim_switches = saved_sim_switches; return FALSE; + } +sim_switches = saved_sim_switches; switch (sim_eval[0]) { case BSBB: case BSBW: case JSB: