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.



_______________________________________________
Mailing list: https://launchpad.net/~gnusim8085-devel
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~gnusim8085-devel
More help   : https://help.launchpad.net/ListHelp

Reply via email to