Mercurial > repos > blastem
diff ztestgen.c @ 296:f90aeea98e53
Fix encoding of "extended" instructions in Z80 test generator
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 08 May 2013 21:02:33 -0700 |
parents | b970ea214ecb |
children | 170722e80fc0 |
line wrap: on
line diff
--- 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); } }