From 0099ea03c53e20968cc0490a48bd606597044e07 Mon Sep 17 00:00:00 2001 From: Ian C Date: Sat, 29 Sep 2007 11:08:46 +0000 Subject: Support for array-based memory --- arm9/include/z80.h | 5 +++-- arm9/include/z80_config.h | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'arm9/include') diff --git a/arm9/include/z80.h b/arm9/include/z80.h index e6bdfd9..8ee5dad 100644 --- a/arm9/include/z80.h +++ b/arm9/include/z80.h @@ -65,8 +65,9 @@ typedef union Z80Byte b[2]; } Z80Reg; -extern int Z80_HI_WORD; -extern int Z80_LO_WORD; +#define Z80_LO_WORD 0 +#define Z80_HI_WORD 1 + /* The processor diff --git a/arm9/include/z80_config.h b/arm9/include/z80_config.h index 7e02bb8..307098e 100644 --- a/arm9/include/z80_config.h +++ b/arm9/include/z80_config.h @@ -45,11 +45,11 @@ 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 */ +#define ENABLE_ARRAY_MEMORY #ifdef ENABLE_ARRAY_MEMORY -#define RAMBOT 0x0000 +#define RAMBOT 0x4000 #define RAMTOP 0xffff #endif -- cgit v1.2.3