summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2006-09-19 22:39:58 +0000
committerIan C <ianc@noddybox.co.uk>2006-09-19 22:39:58 +0000
commit18dd4ce5aa11515ecd54b01bc33ea5ce848b6990 (patch)
tree4316f20920527362480753a3cf21e867c24e3076
parent9e7e165b9be32bb411fdec110d4a0a0947d4c93b (diff)
Fixed setting of disassembly reader when using function memory interface.
-rw-r--r--z80.c2
-rw-r--r--z80_config.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/z80.c b/z80.c
index 4141d57..3a15a22 100644
--- a/z80.c
+++ b/z80.c
@@ -141,7 +141,7 @@ Z80 *Z80Init(Z80ReadMemory read_memory,
#ifndef ENABLE_ARRAY_MEMORY
cpu->mread=read_memory;
cpu->mwrite=write_memory;
- cpu->disread=read_disassem;
+ cpu->disread=read_for_disassem;
#endif
cpu->pread=read_port;
cpu->pwrite=write_port;
diff --git a/z80_config.h b/z80_config.h
index 187d8e0..af36944 100644
--- a/z80_config.h
+++ b/z80_config.h
@@ -45,8 +45,8 @@
In this mode the signature of Z80Init changes so that the memory functions
are not passed. ALL processor instances share the same memory.
-*/
#define ENABLE_ARRAY_MEMORY
+*/
#ifdef ENABLE_ARRAY_MEMORY
#define RAMBOT 0x0000