summaryrefslogtreecommitdiff
path: root/sys/src/games
diff options
context:
space:
mode:
authoraiju <devnull@localhost>2014-06-15 20:11:24 +0200
committeraiju <devnull@localhost>2014-06-15 20:11:24 +0200
commitf65d27b0fceedc86b26ec4d7e7e7d3fe185050fa (patch)
tree067e950d5d349aaf208f5b2fae5db69f603e9866 /sys/src/games
parent1bacbf56512c3cb8a6b938cc56c643b7342a575e (diff)
games/md: small bug fixes
Diffstat (limited to 'sys/src/games')
-rw-r--r--sys/src/games/md/ym.c4
-rw-r--r--sys/src/games/md/z80.c1
2 files changed, 3 insertions, 2 deletions
diff --git a/sys/src/games/md/ym.c b/sys/src/games/md/ym.c
index 16389a693..2bd83af0a 100644
--- a/sys/src/games/md/ym.c
+++ b/sys/src/games/md/ym.c
@@ -54,7 +54,7 @@ timers(void)
if((m & 1) != 0){
tima = (tima + 1) & 0x3ff;
if(tima == 0 && (m & 4) != 0){
- ymstat |= 2;
+ ymstat |= 1;
tima = ym[0x24] | ym[0x25] << 8 & 0x300;
}
}
@@ -63,7 +63,7 @@ timers(void)
if((m & 2) != 0){
timb++;
if(timb == 0 && (m & 8) != 0){
- ymstat |= 1;
+ ymstat |= 2;
timb = ym[0x26];
}
}
diff --git a/sys/src/games/md/z80.c b/sys/src/games/md/z80.c
index 61a3716c5..0fd9f38c2 100644
--- a/sys/src/games/md/z80.c
+++ b/sys/src/games/md/z80.c
@@ -498,6 +498,7 @@ ed(void)
case 0x5b: a = fetch16(); s[rE] = z80read(a++); s[rD] = z80read(a); return 20;
case 0x6b: a = fetch16(); s[rL] = z80read(a++); s[rH] = z80read(a); return 20;
case 0x7b: sp = read16(fetch16()); return 20;
+ case 0x4d: spc = pop16(); return 14;
case 0x5e: intm = intm & 0xc0 | 2; return 8;
case 0x4f: return 9;
}