From 5ec770d0779b98a6ba44d84ec6c0fc1bb35dd25e Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Fri, 21 Oct 2022 14:31:27 -1000 Subject: [PATCH] AltairZ80: Fix VS2008 compile problem with recently updated m68k codebase --- AltairZ80/m68k/m68kcpu.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AltairZ80/m68k/m68kcpu.h b/AltairZ80/m68k/m68kcpu.h index f2c8bf43..ac815e56 100755 --- a/AltairZ80/m68k/m68kcpu.h +++ b/AltairZ80/m68k/m68kcpu.h @@ -1912,6 +1912,7 @@ extern jmp_buf m68ki_bus_error_jmp_buf; static inline void m68ki_exception_bus_error(void) { int i; + uint sr; /* If we were processing a bus error, address error, or reset, * while writing the stack frame, this is a catastrophic failure. @@ -1932,7 +1933,7 @@ static inline void m68ki_exception_bus_error(void) REG_DA[i] = REG_DA_SAVE[i]; } - uint sr = m68ki_init_exception(); + sr = m68ki_init_exception(); /* Note: This is implemented for 68010 only! */ m68ki_stack_frame_1000(REG_PPC, sr, EXCEPTION_BUS_ERROR);