summaryrefslogtreecommitdiff
path: root/source/zx81.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2006-11-22 14:45:26 +0000
committerIan C <ianc@noddybox.co.uk>2006-11-22 14:45:26 +0000
commit5912faf7d30784945acd8a8e07027a633ce3094b (patch)
tree2e7b505c15cf8ddfef5dd6d35fad4ecac3f230d8 /source/zx81.c
parent01dacbf9e13026d0bb3d34eedbbc6ee0bd7467c1 (diff)
Split into ARM7/ARM9 for Wifi use -- initial (non-working) Wifi initialisation. Keyboard and pointer seems more stable.
Diffstat (limited to 'source/zx81.c')
-rw-r--r--source/zx81.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/source/zx81.c b/source/zx81.c
index 533c382..41ff686 100644
--- a/source/zx81.c
+++ b/source/zx81.c
@@ -28,6 +28,8 @@
#include <ctype.h>
#include <nds.h>
+#include "ds81_global.h"
+
#include "zx81.h"
#include "gui.h"
@@ -446,10 +448,14 @@ static void ZX81HouseKeeping(Z80 *z80)
if (lastk1 && (lastk1!=prev_lk1 || lastk2!=prev_lk2))
{
mem[CDFLAG]|=1;
-
- mem[LASTK1]=lastk1^0xff;
- mem[LASTK2]=lastk2^0xff;
}
+ else
+ {
+ mem[CDFLAG]&=~1;
+ }
+
+ mem[LASTK1]=lastk1^0xff;
+ mem[LASTK2]=lastk2^0xff;
prev_lk1=lastk1;
prev_lk2=lastk2;