# HG changeset patch # User Mike Pavone # Date 1368072153 25200 # Node ID f90aeea98e5320eb8dbc4ea5a671ad69caf206af # Parent dba66184657970250b0c77c4eb43ea0c9c23f98d Fix encoding of "extended" instructions in Z80 test generator diff -r dba661846579 -r f90aeea98e53 ztestgen.c --- a/ztestgen.c Wed May 08 17:39:13 2013 -0700 +++ b/ztestgen.c Wed May 08 21:02:33 2013 -0700 @@ -297,7 +297,7 @@ } else if(op == 0xED) { for (int subop = 0; subop < sizeof(z80_tbl_extd)/sizeof(z80inst); subop++) { if (!should_skip(z80_tbl_extd + subop)) { - inst[1] = subop; + inst[1] = subop + 0x40; z80_gen_test(z80_tbl_extd + subop, inst, 2); } }