negative number in accumulator

Thread Starter

saurabh1234

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

hgmjr

Joined Jan 28, 2005
9,027
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
 

Papabravo

Joined Feb 24, 2006
21,228
what will be the sign of the carry flag when a negative data or number is loaded in the accumulator of the microprocessor 8085??i want to know the assembly language opcode for finding out whether the number in tha accumulator is negative or positive....
Those would be JM for jump on minus, or JP for jump on positive. Would you care to explain why you could not find the answer for yourself with a simple google search?

http://www.hobbyprojects.com/microprocessor_tutorials/8085_mnemonics_opcode_instructions.html
 
Top