From 9a74f4fd96d014f755ea4311fb843509c115fd51 Mon Sep 17 00:00:00 2001 From: Ian C Date: Fri, 23 Jan 2004 20:05:54 +0000 Subject: Tweaks --- src/Makefile | 5 +++-- src/memmenu.c | 4 ++-- src/util.c | 3 +-- src/zx81.c | 40 ++++++++++++++++++++-------------------- 4 files changed, 26 insertions(+), 26 deletions(-) (limited to 'src') diff --git a/src/Makefile b/src/Makefile index 96c80bd..271fa37 100644 --- a/src/Makefile +++ b/src/Makefile @@ -18,7 +18,7 @@ # # ------------------------------------------------------------------------- # -# $Id: Makefile,v 1.8 2004-01-22 02:38:13 ianc Exp $ +# $Id: Makefile,v 1.9 2004-01-23 20:05:54 ianc Exp $ # @@ -114,7 +114,8 @@ zx81.o: /usr/local/include/SDL/SDL_keyboard.h zx81.o: /usr/local/include/SDL/SDL_keysym.h zx81.o: /usr/local/include/SDL/SDL_mouse.h /usr/local/include/SDL/SDL_video.h zx81.o: /usr/local/include/SDL/SDL_mutex.h /usr/local/include/SDL/SDL_quit.h -zx81.o: /usr/local/include/SDL/SDL_version.h gfx.h gui.h config.h exit.h +zx81.o: /usr/local/include/SDL/SDL_version.h gfx.h gui.h config.h util.h +zx81.o: exit.h config.o: /usr/include/stdlib.h /usr/include/sys/cdefs.h config.o: /usr/include/sys/_types.h /usr/include/machine/_types.h config.o: /usr/include/stdio.h /usr/include/string.h /usr/include/strings.h diff --git a/src/memmenu.c b/src/memmenu.c index 7f6f3fe..95429f9 100644 --- a/src/memmenu.c +++ b/src/memmenu.c @@ -219,8 +219,8 @@ int DisplayZ80State(Z80State *s, int y, Uint32 col) s->I,s->IM,s->R); y+=8; GFXPrintPaper(0,y,col,BLACK, - "IFF1=%2.2x IFF2=%2.2x CY=%8.8x", - s->IFF1,s->IFF2,s->cycle); + "IFF1=%2.2x IFF2=%2.2x", + s->IFF1,s->IFF2); return y+8; } diff --git a/src/util.c b/src/util.c index 3f5bcc7..566255d 100644 --- a/src/util.c +++ b/src/util.c @@ -116,8 +116,7 @@ void Debug(const char *format, ...) if (!fp) { - /*fp=fopen("debug.txt","w");*/ - fp=stdout; + fp=fopen("debug.txt","w"); setbuf(fp,NULL); } diff --git a/src/zx81.c b/src/zx81.c index aa8d5b5..cb81d80 100644 --- a/src/zx81.c +++ b/src/zx81.c @@ -351,14 +351,12 @@ static void ULA_Video_Shifter(Z80 *z80, Z80Byte val) Z80GetState(z80,&state); - /* Extra check due to dodgy ULA emulation + /* Extra check due to out dodgy ULA emulation */ if (ULA.y>=0 && ULA.y