summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2013-10-27 09:13:02 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2013-10-27 09:13:02 (GMT)
commit0e79a72b0074b43be97771f39f79150ef0771587 (patch)
tree5633cfaa365810d24d388a5e03d0d77cfffbae76
parent250cd657fc50bd6577a819d4d2d2fcd22978f839 (diff)
downloadabc80sim-0e79a72b0074b43be97771f39f79150ef0771587.zip
abc80sim-0e79a72b0074b43be97771f39f79150ef0771587.tar.gz
abc80sim-0e79a72b0074b43be97771f39f79150ef0771587.tar.bz2
abc80sim-0e79a72b0074b43be97771f39f79150ef0771587.tar.xz
z80: RETI operates like RETN except for the interrupt chain
RETI behaves like RETN, not like RET, except for the peripheral chain. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--z80.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/z80.c b/z80.c
index d57fe30..0931ccc 100644
--- a/z80.c
+++ b/z80.c
@@ -2470,10 +2470,7 @@ static void do_ED_instruction(wordregister *ix)
case 0x5D:
case 0x6D:
case 0x7D:
- /* no support for alerting peripherals, just like ret */
- REG_PC = mem_read_word(REG_SP);
- REG_SP += 2;
- break;
+ /* no support for alerting peripherals, just like retn, fall through */
case 0x45: /* retn */
case 0x55: