From d1591dc8440a5a896f22875b519e94cf177d8855 Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 7 May 2007 02:01:56 +0000 Subject: Display not yet working; emulation too slow. --- source/spec.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'source/spec.c') diff --git a/source/spec.c b/source/spec.c index 10a5d0a..0e569b5 100644 --- a/source/spec.c +++ b/source/spec.c @@ -62,9 +62,9 @@ static const int ROM_LOAD=0x562; #define SCRDATA 0x4000 #define ATTR 0x5800 -#define ATTR_AT(x,y) mem[ATTR+(x)+((y)/8)*32] +#define ATTR_AT(x,y) Z80_MEMORY[ATTR+(x)+((y)/8)*32] -static Z80Byte mem[0x10000]; +Z80Byte Z80_MEMORY[0x10000]; /* Number of cycles per frame */ @@ -169,7 +169,7 @@ static void DrawScreen(void) vr=vram; - swiWaitForVBlank(); + /* swiWaitForVBlank(); */ for(y=0;y=ROMLEN) - mem[addr]=val; + Z80_MEMORY[addr]=val; } void SnapPoke(Z80Word addr, Z80Byte val) { if (addr>=ROMLEN) - mem[addr]=val; + Z80_MEMORY[addr]=val; } @@ -365,7 +365,7 @@ void SPECInit(uint16 *v, Z80 *z80) { vram=v; - memcpy(mem,spec48_bin,ROMLEN); + memcpy(Z80_MEMORY,spec48_bin,ROMLEN); /* Patch the ROM */ @@ -491,7 +491,7 @@ void SPECReset(Z80 *z80) r=0; for(f=0;f