summaryrefslogtreecommitdiff
path: root/src/spec.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2004-01-15 18:53:52 +0000
committerIan C <ianc@noddybox.co.uk>2004-01-15 18:53:52 +0000
commit1a8ffd75606e69c6f766188f2ab424cc53782a52 (patch)
tree53354e7db3f6739a42e624daf032dd70714f43b1 /src/spec.c
parentc48dc3b86a81c827eedf3e61c1e6d9b29bb7b269 (diff)
Changes from work
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)