summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2008-12-13 01:09:44 +0000
committerIan C <ianc@noddybox.co.uk>2008-12-13 01:09:44 +0000
commit3cd340549f5ea5380abc9d7377ae6b016244c292 (patch)
tree65761418706d11c6d72b92438fb0205c084f49f2
parent3557796008941acab4f047f6818ff2b98951faf9 (diff)
Added high bit on ULA keyboard read that some code expects.
-rw-r--r--source/zx81.c7
1 files changed, 7 insertions, 0 deletions
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: