gnusim8085-devel team mailing list archive
-
gnusim8085-devel team
-
Mailing list archive
-
Message #00200
[Bug 579320] Re: CMP flags not working like SUB with signed numbers
And though the bug report has helped in cleaning up that instruction, I
doubt if the flags must be the same after and before a SUB instruction.
A SUB instruction affects the Accumulator content (a "result" is
generated). hence will affect the S, P flags as well. So partially
fixing bug with a commit.
If any discrepancy with my explanation feel free to shoot as always.
Regards,
Aanjhan
--
CMP flags not working like SUB with signed numbers
https://bugs.launchpad.net/bugs/579320
You received this bug notification because you are a member of
GNUSim8085 developers, which is subscribed to gnusim8085.
Status in gnusim8085: Fix Committed
Bug description:
MVI A,001h
MVI B,0FEh
CMP B
SUB B
flags after CMP not the same as SUB.