summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2023-04-23 08:11:33 +0800
committerIan C <ianc@noddybox.co.uk>2023-04-23 08:11:33 +0800
commit793788771dcf70b2ff2c7c082517f33239bf719d (patch)
treecd05ebbe84ff34e494f9d9020b874dbf979a5ad0
parentd42634ec2748926eed6ce277f0c5046e73f682cf (diff)
Fixed non-array mode
-rw-r--r--z80_config.h2
-rw-r--r--z80_decode.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/z80_config.h b/z80_config.h
index 098ddf0..6f50cc0 100644
--- a/z80_config.h
+++ b/z80_config.h
@@ -49,8 +49,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
diff --git a/z80_decode.c b/z80_decode.c
index dcca2c2..15d0179 100644
--- a/z80_decode.c
+++ b/z80_decode.c
@@ -102,13 +102,13 @@ void Z80_InitialiseInternals(void)
}
#ifndef ENABLE_ARRAY_MEMORY
-static Z80Word FPEEKW(Z80 *cpu, Z80Word addr)
+Z80Word FPEEKW(Z80 *cpu, Z80Word addr)
{
return (PEEK(addr) | (Z80Word)PEEK(addr+1)<<8);
}
-static void FPOKEW(Z80 *cpu, Z80Word addr, Z80Word val)
+void FPOKEW(Z80 *cpu, Z80Word addr, Z80Word val)
{
PRIV->mwrite(cpu,addr,val);
PRIV->mwrite(cpu,addr+1,val>>8);