- [FIX] Si no hi havia coincidencia la busqueda no paraba mai
- [FIX] RLCA i RRCA sempre activaben el flag de carry, independentment del valor
This commit is contained in:
4
z80.cpp
4
z80.cpp
@@ -485,7 +485,7 @@ namespace z80
|
||||
const bool should_carry = rA & 0x80;
|
||||
rA = (rA>>7) | (rA<<1);
|
||||
KEEP_FLAGS(fS | fZ | fP);
|
||||
SET_FLAGS(rA & (fX | fY | fC));
|
||||
SET_FLAGS(rA & (fX | fY));
|
||||
if (should_carry) SET_FLAGS(fC);
|
||||
}
|
||||
|
||||
@@ -494,7 +494,7 @@ namespace z80
|
||||
const bool should_carry = rA & 0x01;
|
||||
rA = (rA<<7) | (rA>>1);
|
||||
KEEP_FLAGS(fS | fZ | fP);
|
||||
SET_FLAGS(rA & (fX | fY | fC));
|
||||
SET_FLAGS(rA & (fX | fY));
|
||||
if (should_carry) SET_FLAGS(fC);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user