← Back to team overview

gnusim8085-devel team mailing list archive

[Bug 579320] Re: CMP flags not working like SUB with signed numbers

 

Hi,

Since CMP is nothing but SUB without setting the accumulator, I modified
the CMP instruction code to match the SUB instruction using a different
variable in place of the accumulator variable.

I would like to test whether the flags set during the subtract
operations are correct or not. Can anyone suggest test cases?

Thanks,
Debjit



** Patch added: "gnusim-579320.patch"
   https://bugs.launchpad.net/gnusim8085/+bug/579320/+attachment/1522196/+files/gnusim-579320.patch

-- 
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: New

Bug description:
MVI A,001h
MVI B,0FEh
CMP B
SUB B

flags after CMP not the same as SUB.