diff options
author | Ian C <ianc@noddybox.co.uk> | 2004-01-15 18:53:52 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2004-01-15 18:53:52 +0000 |
commit | 1a8ffd75606e69c6f766188f2ab424cc53782a52 (patch) | |
tree | 53354e7db3f6739a42e624daf032dd70714f43b1 /src/spec.c | |
parent | c48dc3b86a81c827eedf3e61c1e6d9b29bb7b269 (diff) |
Changes from work
Diffstat (limited to 'src/spec.c')
-rw-r--r-- | src/spec.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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) |