suzukiplan / z80

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

LD A, I Incorrect P/V flag after execution #29

Closed suzukiplan closed 2 years ago

suzukiplan commented 2 years ago

I got the point from a comment on Qiita.

Specification

image

Actual

https://github.com/suzukiplan/z80/blob/f3cb12d033b004e39fc741675826ceda13afaa90/z80.hpp#L459-L466

P/V flag is set to IFF1 instead of IFF2