negative number in accumulator

Discussion in 'Embedded Systems and Microcontrollers' started by saurabh1234, Nov 14, 2009.

  1. saurabh1234

    Thread Starter New Member

    Nov 13, 2009
    9
    2
    what will be the sign of the carry flag when a negative data or number is loaded in the accumulator of the microprocessor 8085??
     
  2. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    Simply loading a number into the accumulator of a CPU does not alter the CARRY FLAG. You can SET or CLEAR the CARRY FLAG directly using the assembly language instructions for that purpose or the CARRY FLAG can be changed as a result of an operation on the contents of the accumulator such as ADD or SUB.

    hgmjr
     
  3. saurabh1234

    Thread Starter New Member

    Nov 13, 2009
    9
    2
     
  4. russ_hensel

    Well-Known Member

    Jan 11, 2009
    818
    47
    Do not know as i do not use this chip, but how about the sign flag? See spec sheet, always a good idea.
     
  5. Papabravo

    Expert

    Feb 24, 2006
    10,179
    1,800
     
Loading...