On ucsim-z80 simulator,
jp [IX]
jump to the address which was loaded from memory of
address IX, not just load IX to PC.
SDCC :
mcs51/gbz80/z80/avr/ds390/pic14/pic16/TININative/xa51
/ds400 2.3.5 (Aug 18 2003) (UNIX)
cvspserver server: Diffing .
Index: inst_xd.cc
==========================================
=========================
RCS
file: /cvsroot/sdcc/sdcc/sim/ucsim/z80.src/inst_xd.cc,v
retrieving revision 1.2
diff -r1.2 inst_xd.cc
525c525,526
< PC = get2(regs_IX_OR_IY);
---
> PC = regs_IX_OR_IY;
Logged In: YES
user_id=635249
Fixed in /sim/ucsim/z80.src/inst_xd.cc 1.3
Thanks for the patch.