mirror of
https://github.com/holub/mame
synced 2025-04-21 07:52:35 +03:00
z8000: fix lda register corruption (nw)
This commit is contained in:
parent
1784126a53
commit
c774876bb9
@ -4515,13 +4515,14 @@ void z8002_device::Z76_ssN0_dddd_addr()
|
||||
GET_DST(OP0,NIB3);
|
||||
GET_SRC(OP0,NIB2);
|
||||
GET_ADDR_RAW(OP1);
|
||||
UINT16 temp = RW(src); // store src in case dst == src
|
||||
if (segmented_mode()) {
|
||||
RL(dst) = addr;
|
||||
}
|
||||
else {
|
||||
RW(dst) = addr;
|
||||
}
|
||||
add_to_addr_reg(dst, RW(src));
|
||||
add_to_addr_reg(dst, temp);
|
||||
}
|
||||
|
||||
/******************************************
|
||||
|
Loading…
Reference in New Issue
Block a user