summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2013-10-27 08:38:58 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2013-10-27 08:38:58 (GMT)
commit8f44cfe35892e3f4e73eb7a72b132758e6f6c88a (patch)
treee80ad7bc07e669a2e5bc8e94322d299f141b9ec8
parent4fd388ee72de493bc8cded5b76f63dfe37543143 (diff)
downloadabc80sim-8f44cfe35892e3f4e73eb7a72b132758e6f6c88a.zip
abc80sim-8f44cfe35892e3f4e73eb7a72b132758e6f6c88a.tar.gz
abc80sim-8f44cfe35892e3f4e73eb7a72b132758e6f6c88a.tar.bz2
abc80sim-8f44cfe35892e3f4e73eb7a72b132758e6f6c88a.tar.xz
z80: Multiple DD or FD prefixes are permitted
Multiple DD or FD prefixes are permitted, only the last one takes effect. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--z80.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/z80.c b/z80.c
index 77c8061..97c7dbb 100644
--- a/z80.c
+++ b/z80.c
@@ -2576,16 +2576,12 @@ int z80_run(int continuous)
do_CB_instruction(ix);
break;
case 0xDD: /* DD.. extended instruction */
- if (ix != &z80_state.hl)
- goto bad;
ix = &z80_state.ix;
goto indexed;
case 0xED: /* ED.. extended instruction */
do_ED_instruction(ix);
break;
case 0xFD: /* FD.. extended instruction */
- if (ix != &z80_state.hl)
- goto bad;
ix = &z80_state.iy;
goto indexed;