In the 8085 microprocessor, the Arithmetic Logic Unit (ALU) affects five flags in the status register: Sign Flag (S), Zero Flag (Z), Auxiliary Carry Flag (AC), Parity Flag (P), and Carry Flag (CY). The Sign Flag indicates the sign of the result; the Zero Flag is set if the result is zero; the Auxiliary Carry Flag is used for BCD operations; the Parity Flag indicates whether the number of 1s in the result is even or odd; and the Carry Flag indicates an overflow in arithmetic operations. These flags help in decision-making for subsequent operations and control flow in programs.
All flags are affected after the SUB operation to reflect the result of subtraction.
5 FLAGS
there are 5 flags of intel 8085 are: Carry flag(CY), parity flag(P), Auxiliary Carry flag(AC), Zero Flag(Z), Sign flag(S).
In the 8085 microprocessor, DAD (Double Add) is an instruction that adds the contents of a specified 16-bit register pair (HL, BC, or DE) to the contents of the accumulator (A) and stores the result back in the 16-bit register pair. The flags affected by the DAD instruction are the Carry flag (CY) and the Parity flag (P). The Zero flag (Z) and Sign flag (S) remain unaffected. Additionally, the Auxiliary Carry flag (AC) is also not affected by this operation.
a number (1) because 8085+1=8086
The Program Status Word (PSW) for the 8085 and 8086 microprocessors consists of various flags that indicate the status of operations. In the 8085, the flags include the Sign Flag (S), Zero Flag (Z), Auxiliary Carry Flag (AC), Parity Flag (P), and Carry Flag (CY). For example, if an operation results in a negative value, the Sign Flag is set, while if the result is zero, the Zero Flag is set. In 8086, the PSW includes similar flags but adds the Overflow Flag (OF), which indicates an overflow in signed arithmetic operations.
explain how slow memory get interfaced with 8085
The MOV A,A instruction in the 8085 does nothing, not even change flags. It only consumes time, specifically four clock cycles plus applicable wait states.
; Exact answer: LXI H, FFFFH push H POP PSW
PART - A 10*3=30 1. Define Micro Processor. 2. What is an accumulator. 3. Why Data Bus id Bidirectional? 4. What is Microcomputer? Explain the difference between a microprocessor and microcomputer 5. List the applications of micro computer. 6. What are the advantages of microprocessor based system? 7. Explain the functions of IO/Min 8085. 8. What is Flag? List the flag of 8085. Show the bit positions of various flags in 8085 flag register? 9. Why Address Bus is unidirectional? 10. What are the Interrupts in 8085? PART - B 5*6=30 11. What are Data Transfer Instructions, Write any Instruction. 12. Define the following Terms Compiler, Assembler, Interpreter with example 13. Explain Instructions & Data Format. 14. Explain & Draw a Block Diagram of Computer with the microprocessor as CPU. 15. Explain the Logical Operations. PART - C 4*10=40 16. Explain the Microprocessor Architecture and its operations 17. Explain the various pins of 8085 Microprocessor 18. List the Registers in the 8085 Microprocessor & explain the functions in detail 19. Write a Assembly language program to add two 8 bit numbers 20. Write a Assembly language program to add 16 bit numbers
The compare and subtract instructions in the 8085 both subtract one operand from another, and set flags accordingly. The subtract instruction stores the result in the accumulator, while the compare instruction does not - except for the flags, the compare instruction "throws" the result away.
for dcs 8086 and 8085 are usually used as base microcontroller as these have indication flags which r signaled to registers