gnusim8085-devel team mailing list archive
-
gnusim8085-devel team
-
Mailing list archive
-
Message #00202
[Bug 579320] Re: CMP flags not working like SUB with signed numbers
Hi Aanjhan,
The code at line 148 (in function _eef_find_and_set_flags) is:
sys.flag.z = (result == 0);
where result is passed to the function.
I am calling the function as _eef_find_and_set_flags (a); thus the zero
flag will be set.
Thanks,
Debjit
--
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.