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:
notaz 2017-09-20 22:32:35 +03:00 committed by Vas Crabb
parent fbf0224085
commit 4aac86588a

View File

@ -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)