--- 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:15:36 1.1.1.13 @@ -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_fileid[] = "Hatari hatari-glue.c : " __DATE__ " " __TIME__; #include @@ -20,6 +20,8 @@ const char HatariGlue_rcsid[] = "Hatari #include "../includes/cart.h" #include "../includes/vdi.h" #include "../includes/stMemory.h" +#include "../includes/ikbd.h" +#include "../includes/video.h" #include "sysdeps.h" #include "maccess.h" @@ -42,6 +44,13 @@ 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 (); + + /* Reseting the GLUE video chip should also set freq/res register to 0 */ + Video_Reset_Glue (); }