CMP flags not working like SUB with signed numbers
Bug #579320 reported by
nestor ariel
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnusim8085 |
Fix Released
|
Medium
|
Aanjhan Ranganathan |
Bug Description
MVI A,001h
MVI B,0FEh
CMP B
SUB B
flags after CMP not the same as SUB.
Changed in gnusim8085: | |
milestone: | none → 1.3.7 |
Changed in gnusim8085: | |
status: | Fix Committed → In Progress |
Changed in gnusim8085: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
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