From 793788771dcf70b2ff2c7c082517f33239bf719d Mon Sep 17 00:00:00 2001 From: Ian C Date: Sun, 23 Apr 2023 08:11:33 +0800 Subject: Fixed non-array mode --- z80_config.h | 2 +- z80_decode.c | 4 ++-- 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); -- cgit v1.2.3