mirror of
https://github.com/holub/mame
synced 2025-06-22 12:28:33 +03:00
Fixed DA A instruction when A is > 0xF9.
This commit is contained in:
parent
842ed3efb0
commit
4725e2fa8e
@ -192,7 +192,11 @@ INLINE UINT8 pull(void) {
|
||||
INLINE void daa_a(void)
|
||||
{
|
||||
if ((R.A & 0x0f) > 0x09 || (R.PSW & A_FLAG))
|
||||
{
|
||||
R.A += 0x06;
|
||||
if ( ! ( R.A & 0xf0 ) )
|
||||
SET(C_FLAG);
|
||||
}
|
||||
if ((R.A & 0xf0) > 0x90 || (R.PSW & C_FLAG))
|
||||
{
|
||||
R.A += 0x60;
|
||||
|
Loading…
Reference in New Issue
Block a user