summaryrefslogtreecommitdiff
path: root/arm9/source
diff options
context:
space:
mode:
Diffstat (limited to 'arm9/source')
-rw-r--r--arm9/source/main.c5
-rw-r--r--arm9/source/z80_decode.c30
2 files changed, 5 insertions, 30 deletions
diff --git a/arm9/source/main.c b/arm9/source/main.c
index 235098b..6c8fbbc 100644
--- a/arm9/source/main.c
+++ b/arm9/source/main.c
@@ -335,11 +335,16 @@ int main(int argc, char *argv[])
*/
keysSetRepeat(30,15);
+#ifdef ENABLE_ARRAY_MEMORY
+ z80 = Z80Init(SPECReadPort,
+ SPECWritePort);
+#else
z80 = Z80Init(SPECPeek,
SPECPoke,
SPECReadPort,
SPECWritePort,
SPECDisPeek);
+#endif
if (!z80)
{
diff --git a/arm9/source/z80_decode.c b/arm9/source/z80_decode.c
index 4a24bd4..82912b8 100644
--- a/arm9/source/z80_decode.c
+++ b/arm9/source/z80_decode.c
@@ -40,9 +40,6 @@ static Z80Byte Stable[512];
static Z80Byte Ztable[512];
-int Z80_HI_WORD;
-int Z80_LO_WORD;
-
#define HI Z80_HI_WORD
#define LO Z80_LO_WORD
@@ -51,33 +48,6 @@ int Z80_LO_WORD;
void Z80_InitialiseInternals(void)
{
Z80Word f;
- Z80Reg r;
-
- /* Check endianness
- */
- r.w=0x1234;
-
- if (r.b[0] == 0x12)
- {
- HI=0;
- LO=1;
- }
- else if (r.b[1] == 0x12)
- {
- HI=1;
- LO=0;
- }
- else
- {
- exit(1);
- }
-
- /* Check variable sizes
- */
- if (CHAR_BIT!=8 || sizeof(Z80Word)!=2)
- {
- exit(2);
- }
/* Initialise flag tables
*/