1
0
mirror of https://github.com/jscrane/r65emu.git synced 2024-07-17 23:29:05 +00:00

tiny fixes

This commit is contained in:
Stephen Crane 2019-02-28 19:42:43 +00:00
parent 8c0e0dd22e
commit d33d25674f

View File

@ -613,6 +613,7 @@ void z80::ed() {
b += A;
flags.P = (BC != 0);
_35(b);
flags._5 = ((b & 0x02) != 0);
flags.N = flags.H = 0;
break;
case 0xa1:
@ -630,6 +631,7 @@ void z80::ed() {
flags.C = f;
flags.P = (BC != 0);
_35(b);
flags._5 = ((b & 0x02) != 0);
_memptr++;
break;
case 0xa2:
@ -667,11 +669,12 @@ void z80::ed() {
b += A;
flags.P = (BC != 0);
_35(b);
flags._5 = ((b & 0x02) != 0);
flags.N = flags.H = 0;
break;
case 0xa9:
b = _rb(HL);
c = A - b;
c = A - b - flags.H;
_mc(HL, 1); _mc(HL, 1); _mc(HL, 1);
_mc(HL, 1); _mc(HL, 1);
HL--;
@ -679,6 +682,7 @@ void z80::ed() {
flags.N = 1;
flags.P = (BC != 0);
_sz35(c);
flags._5 = ((c & 0x02) != 0);
_memptr--;
// FIXME: flag H
break;
@ -793,6 +797,7 @@ void z80::ed() {
b += A;
flags.P = (BC != 0);
_35(b);
flags._5 = ((b & 0x02) != 0);
flags.N = flags.H = 0;
if (BC) {
_mc(DE, 1); _mc(DE, 1); _mc(DE, 1);
@ -812,6 +817,7 @@ void z80::ed() {
flags.N = 1;
flags.P = (BC != 0);
_sz35(c);
flags._5 = ((c & 0x02) != 0);
// FIXME: flag H
_memptr--;
if (BC) {