diff options
author | Ian C <ianc@noddybox.co.uk> | 2006-09-17 00:01:19 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2006-09-17 00:01:19 +0000 |
commit | 5b27bd62f60532486d288a60193b583d2e6cb8c0 (patch) | |
tree | 1caaf8a4b1ba4e7e66d983b58d790dba4df1ac81 /src | |
parent | 79ff304abce3f4a1e876e3335dbb890846ff3f3e (diff) |
Updates
Diffstat (limited to 'src')
-rw-r--r-- | src/util.c | 12 | ||||
-rw-r--r-- | src/zx81.c | 4 |
2 files changed, 11 insertions, 5 deletions
@@ -111,13 +111,21 @@ const char *Dirname(const char *path) void Debug(const char *format, ...) { + static const int USE_STDERR=1; static FILE *fp=NULL; va_list ap; if (!fp) { - fp=fopen("debug.txt","w"); - setbuf(fp,NULL); + if (USE_STDERR) + { + fp=stderr; + } + else + { + fp=fopen("debug.txt","w"); + setbuf(fp,NULL); + } } if (!fp) @@ -52,9 +52,7 @@ static const int ROMLEN=0x2000; static const int ROM_SAVE=0x2fc; static const int ROM_LOAD=0x347; -/* No of T-states in each 64us HSYNC (hopefully) -*/ -static const Z80Val HSYNC_PERIOD=321; +static const Z80Val HSYNC_PERIOD=208; /* The ZX81 screen */ |