mirror of
https://github.com/holub/mame
synced 2025-06-05 20:33:45 +03:00
z8: fixed bug in decimal adjust. Fixes PRINT 654 in bert.
This commit is contained in:
parent
2ec0464575
commit
c4a184e2c6
@ -325,7 +325,7 @@ void z8_device::decimal_adjust(uint8_t dst)
|
||||
if (flag(C) | (data>0x99)) new_data+=0x60;
|
||||
}
|
||||
|
||||
set_flag_c(new_data & 0x100);
|
||||
set_flag_c(flag(C)|(new_data & 0x100));
|
||||
set_flag_s(new_data & 0x80);
|
||||
new_data &= 0xff;
|
||||
set_flag_z(new_data == 0);
|
||||
|
Loading…
Reference in New Issue
Block a user