--- hatari/src/uae-cpu/hatari-glue.c 2019/04/01 07:13:46 1.1.1.11 +++ hatari/src/uae-cpu/hatari-glue.c 2019/04/01 07:14:56 1.1.1.12 @@ -7,7 +7,7 @@ This file contains some code to glue the UAE CPU core to the rest of the emulator and Hatari's "illegal" opcodes. */ -const char HatariGlue_rcsid[] = "Hatari $Id: hatari-glue.c,v 1.1.1.11 2019/04/01 07:13:46 root Exp $"; +const char HatariGlue_rcsid[] = "Hatari $Id: hatari-glue.c,v 1.1.1.12 2019/04/01 07:14:56 root Exp $"; #include @@ -20,6 +20,7 @@ const char HatariGlue_rcsid[] = "Hatari #include "../includes/cart.h" #include "../includes/vdi.h" #include "../includes/stMemory.h" +#include "../includes/ikbd.h" #include "sysdeps.h" #include "maccess.h" @@ -42,6 +43,10 @@ int pendingInterrupts = 0; void customreset(void) { pendingInterrupts = 0; + + /* In case the 6301 was executing a custom program from its RAM */ + /* we must turn it back to the 'normal' mode. */ + IKBD_Reset_ExeMode (); }