summaryrefslogtreecommitdiff
path: root/src/spec.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/spec.c')
-rw-r--r--src/spec.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/spec.c b/src/spec.c
index 1cfa2ba..b0dc155 100644
--- a/src/spec.c
+++ b/src/spec.c
@@ -34,6 +34,7 @@ static const char ident[]="$Id$";
#include "gui.h"
#include "config.h"
#include "exit.h"
+#include "util.h"
static const char ident_h[]=ESPEC_SPECH;
@@ -545,6 +546,13 @@ Z80Word SPECReadWord(Z80 *z80, Z80Word addr)
void SPECWriteWord(Z80 *z80, Z80Word addr, Z80Word val)
{
+ if (addr==0xff4e && val==0)
+ {
+ Z80State s;
+ Z80GetState(z80,&s);
+ Debug("Wrote %4.4x to %4.4x @%4.4x\n",val,addr,s.PC);
+ }
+
if (addr>=ROMLEN)
mem[addr]=val&0xff;
@@ -822,6 +830,11 @@ const char *SPECInfo(Z80 *z80)
}
+void SPECReset(Z80 *z80)
+{
+}
+
+
void SPECMount(SPECMountType type, const char *path)
{
switch(type)