From 0f37db40662688083dc75ba3a1a4bc568553186a Mon Sep 17 00:00:00 2001 From: Ian C Date: Fri, 23 Jan 2004 02:30:29 +0000 Subject: Devel checkin --- src/memmenu.c | 4 ++-- src/util.c | 3 ++- src/zx81.c | 53 +++++++++++++++++++++++++++++++++++++---------------- 3 files changed, 41 insertions(+), 19 deletions(-) diff --git a/src/memmenu.c b/src/memmenu.c index 95429f9..7f6f3fe 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", - s->IFF1,s->IFF2); + "IFF1=%2.2x IFF2=%2.2x CY=%8.8x", + s->IFF1,s->IFF2,s->cycle); return y+8; } diff --git a/src/util.c b/src/util.c index 566255d..3f5bcc7 100644 --- a/src/util.c +++ b/src/util.c @@ -116,7 +116,8 @@ void Debug(const char *format, ...) if (!fp) { - fp=fopen("debug.txt","w"); + /*fp=fopen("debug.txt","w");*/ + fp=stdout; setbuf(fp,NULL); } diff --git a/src/zx81.c b/src/zx81.c index a7299e4..aa8d5b5 100644 --- a/src/zx81.c +++ b/src/zx81.c @@ -32,6 +32,7 @@ static const char ident[]="$Id$"; #include "gfx.h" #include "gui.h" #include "config.h" +#include "util.h" #include "exit.h" static const char ident_h[]=EZX81_ZX81H; @@ -350,12 +351,14 @@ static void ULA_Video_Shifter(Z80 *z80, Z80Byte val) Z80GetState(z80,&state); - /* Extra check due to out dodgy ULA emulation + /* Extra check due to dodgy ULA emulation */ if (ULA.y>=0 && ULA.y