In mode 10, I see the ex bc, hl instruction just copy bc into hl, leaving the value in bc unchanged. This needs to be looked into further before we can use the instruction in codegen.
P.S.: Further testing indicates that similarly, ex jk, hl just copies jk into hl.
Diff:
Testing further, it looks like all 3 ex instruction on page 0x7f in mode 10 copy one operand into the other. Maybe some other location gets written instead that I didn't check, though.
ex bc, hllooks likeld hl, bcex jk, hllooks likeld hl, jkex jkhl, bcdelooks likeld jkhl, bcdeTesting further, it looks like all 3 ex instruction on page 0x7f in mode 10 copy one operand into the other. Maybe some other location gets written instead that I didn't check, though.
ex bc, hllooks likeld hl, bcex jk, hllooks likeld hl, jkex khl, bcdelooks likeld jkhl, bcde