CY Flag in CMP instruction

In CMP instruction, when accumulator content is greater than register content the CY and Z flag need to be reset. But in the simulator CY flag is set.

Id #7214 | Release: None | Updated: Jun 17 at 12:59 PM by sagar_spkt | Created: Jun 17 at 12:59 PM by sagar_spkt

Subtraction of a Zero sets the Carry Flag

I've noticed that when subtracting a Zero from A, the Carry flag gets set. eg: MVI A, 1H SUI 0 The Carry Flag gets set. Unluckily, I dont have a real 8085 to try it out, but on an Emulat...

Id #7213 | Release: None | Updated: Oct 6, 2016 at 3:27 PM by suleihi | Created: Oct 6, 2016 at 3:27 PM by suleihi

DAA instruction

.. ... ; Cy = 1 (from some previous instr.) MVI A,88h DAA ; result should be EEh, not 52h   Regards, Boris

Id #7212 | Release: None | Updated: Feb 22, 2013 at 12:33 AM by dboris | Created: Sep 4, 2010 at 12:28 PM by dboris

  • 1-3 of 3 Work Items
    • Previous
    • 1
    • Next
    • Showing
    • All
    • Work Items