From 44ffbe36a8e7eaab7d7851bb79f229c4383c6545 Mon Sep 17 00:00:00 2001 From: Ian C Date: Tue, 13 Jan 2004 02:21:06 +0000 Subject: Added breakpoints to memory menu and added extra GUI items. Plus general fixes. --- src/spec.c | 56 +++++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 39 insertions(+), 17 deletions(-) (limited to 'src/spec.c') diff --git a/src/spec.c b/src/spec.c index bd6d5ff..3be7753 100644 --- a/src/spec.c +++ b/src/spec.c @@ -63,8 +63,6 @@ static FILE *tape_out; /* The SPEC screen */ -#define GFX_W 320 -#define GFX_H 300 #define SCR_W 256 #define SCR_H 192 #define TXT_W 32 @@ -75,8 +73,8 @@ static FILE *tape_out; #define ATTR_AT(x,y) \ mem[ATTR+(x)+((y)/8)*32] -static const int OFF_X=(GFX_W-SCR_W)/2; -static const int OFF_Y=(GFX_H-SCR_H)/2; +static const int OFF_X=(GFX_WIDTH-SCR_W)/2; +static const int OFF_Y=(GFX_HEIGHT-SCR_H)/2; static Z80Byte mem[0x10000]; @@ -256,7 +254,7 @@ void DrawScanline(int y) aline=scanline-TOPL; - GFXHLine(0,GFX_W-1,y,coltable[border].col); + GFXHLine(0,GFX_WIDTH-1,y,coltable[border].col); if (aline>=0 && aline=0 && y=0 && y=ROMLEN) + mem[addr]=val&0xff; + + addr++; + + if (addr>=ROMLEN) + mem[addr]=val>>8; +} + + Z80Byte SPECReadPort(Z80 *z80, Z80Word port) { Z80Byte lo=port&0xff; -- cgit v1.2.3