mirror of
https://github.com/holub/mame
synced 2025-07-04 01:18:59 +03:00
m68k: fix another nbcd mistake
Verified on 68000 with an updated bcd-verifier: https://github.com/flamewing/68k-bcd-verifier/pull/1 Megadrive ROM: http://notaz.gp2x.de/md/rel/bcd-verifier-u1.zip
This commit is contained in:
parent
fbf0224085
commit
4aac86588a
@ -7610,7 +7610,7 @@ M68KMAKE_OP(mull, 32, ., .)
|
|||||||
M68KMAKE_OP(nbcd, 8, ., d)
|
M68KMAKE_OP(nbcd, 8, ., d)
|
||||||
{
|
{
|
||||||
uint32_t* r_dst = &DY(mc68kcpu);
|
uint32_t* r_dst = &DY(mc68kcpu);
|
||||||
uint32_t dst = *r_dst;
|
uint32_t dst = MASK_OUT_ABOVE_8(*r_dst);
|
||||||
uint32_t res = -dst - XFLAG_1(mc68kcpu);
|
uint32_t res = -dst - XFLAG_1(mc68kcpu);
|
||||||
|
|
||||||
if(res != 0)
|
if(res != 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user