kosarev / z80

Fast and flexible Z80/i8080 emulator with C++ and Python APIs
MIT License
63 stars 10 forks source link

ED-prefixed Z80 instructions affected by the DD/FD prefixed #23

Closed kosarev closed 3 years ago

kosarev commented 3 years ago

Turns out, some of the ED instruction handlers ask for current iregp and try to work with index registers, despite the disassembling part being correct and always assuming it be iregp::hl. What a shame!

Caught during falling down the rabbit hole of #21 / #22, checking for duplicate instruction disassemblies. (And yes, we do have duplicates for ld (0x0000), hl, encodings 22xxxxand ed63xxxx, and ld hl, (0x0000), 2axxxx and ed6bxxxx.)

kosarev commented 3 years ago

Fixed.