mirror of
https://github.com/holub/mame
synced 2025-05-21 13:18:56 +03:00
i8085:
- RIM instruction now shows the current status of RST5.5 and RST6.5 pins.
This commit is contained in:
parent
f32b00264b
commit
b0c5844b7a
@ -373,10 +373,8 @@ INLINE UINT8 get_rim_value(i8085_state *cpustate)
|
|||||||
|
|
||||||
/* copy live RST5.5 and RST6.5 states */
|
/* copy live RST5.5 and RST6.5 states */
|
||||||
result &= ~(IM_I65 | IM_I55);
|
result &= ~(IM_I65 | IM_I55);
|
||||||
if (cpustate->irq_state[I8085_RST65_LINE] && !(cpustate->IM & IM_M65))
|
if (cpustate->irq_state[I8085_RST65_LINE]) result |= IM_I65;
|
||||||
result |= IM_I65;
|
if (cpustate->irq_state[I8085_RST55_LINE]) result |= IM_I55;
|
||||||
if (cpustate->irq_state[I8085_RST55_LINE] && !(cpustate->IM & IM_M55))
|
|
||||||
result |= IM_I55;
|
|
||||||
|
|
||||||
/* fetch the SID bit if we have a callback */
|
/* fetch the SID bit if we have a callback */
|
||||||
result = (result & 0x7f) | (sid ? 0x80 : 0);
|
result = (result & 0x7f) | (sid ? 0x80 : 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user