From 1a8ffd75606e69c6f766188f2ab424cc53782a52 Mon Sep 17 00:00:00 2001 From: Ian C Date: Thu, 15 Jan 2004 18:53:52 +0000 Subject: Changes from work --- src/spec.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/spec.c') 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) -- cgit v1.2.3