From 3cd340549f5ea5380abc9d7377ae6b016244c292 Mon Sep 17 00:00:00 2001 From: Ian C Date: Sat, 13 Dec 2008 01:09:44 +0000 Subject: Added high bit on ULA keyboard read that some code expects. --- source/zx81.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source') diff --git a/source/zx81.c b/source/zx81.c index fb6f801..7aa5380 100644 --- a/source/zx81.c +++ b/source/zx81.c @@ -982,6 +982,13 @@ Z80Byte ZX81ReadPort(Z80 *z80, Z80Word port) b=matrix[7]; break; } + + /* Some code expects some of the top bits set... Of course, whether + or not this may be worse as other code doesn't expect the bits, + we shall find out! + */ + b |= 0x60; + break; default: -- cgit v1.2.3