From 72e65aafe6141399b461fa060917dc908fd3d379 Mon Sep 17 00:00:00 2001 From: Ian C Date: Fri, 23 Jan 2004 20:02:27 +0000 Subject: Changes from work --- src/gui.c | 2 +- src/spec.c | 76 ++++++++++++++++++++++++++++++++------------------------------ 2 files changed, 40 insertions(+), 38 deletions(-) diff --git a/src/gui.c b/src/gui.c index 05ebc49..3340de1 100644 --- a/src/gui.c +++ b/src/gui.c @@ -431,7 +431,7 @@ int GUIFileSelect(const char *prompt, int load, else strcpy(path,"/files/emu/spectrum/testespec.tap"); - strcpy(path,"/files/emu/spectrum/testespec.tap"); + /* strcpy(path,"/files/emu/spectrum/testespec.tap"); */ return TRUE; } diff --git a/src/spec.c b/src/spec.c index b094126..1a69894 100644 --- a/src/spec.c +++ b/src/spec.c @@ -431,9 +431,6 @@ static int CheckTimers(Z80 *z80, Z80Val val) void SPECInit(Z80 *z80) { FILE *fp; - int f; - int c; - int r; if (!(fp=fopen(SConfig(CONF_ROMFILE),"rb"))) { @@ -460,40 +457,7 @@ void SPECInit(Z80 *z80) Z80LodgeCallback(z80,eZ80_EDHook,EDCallback); Z80LodgeCallback(z80,eZ80_Instruction,CheckTimers); - /* Set up the keyboard - */ - for(f=0;f<8;f++) - matrix[f]=0x1f; - - /* Set up the colours - */ - for(f=0;f<16;f++) - coltable[f].col=GFXRGB(coltable[f].r,coltable[f].g,coltable[f].b); - - scanline=0; - flash=0; - flashctr=0; - - /* Set up screen - */ - c=0; - r=0; - for(f=0;f