suzukiplan / z80

Single header Z80 emulator for C++ (C++11 or later)
MIT License
55 stars 9 forks source link

incorrect ADD IX,IX and ADD IY,IY #32

Closed suzukiplan closed 2 years ago

suzukiplan commented 2 years ago

Condition

When ADD IX,IX or ADD IY,IY are executed, the result of HL addition is set to IX or IY.

Expected

ADD IX, IX ... IX = IX + IX
ADD IY, IY ... IY = IY + IY

Actual

ADD IX, IX ... IX = IX + HL
ADD IY, IY ... IY = IY + HL

Note

Detected by zexdoc