Free Electronic Circuits & 8085 projects

Electronic projects with circuit diagram and 8085 microprocessor projects.

Alter the contents of flag register in 8085

Published on Nov 16 2009 // Learners

Statement: Write a set of instructions to alter the contents of flag register in 8085.


  • PUSH PSW: Save flags on stack
  • POP H: Retrieve flags in ‘L’
  • MOV A, L :Flags in accumulator
  • CMA:Complement accumulator
  • MOV L, A:Accumulator in ‘L’
  • PUSH H:Save on stack
  • POP PSW:Back to flag register
  • HLT:Terminate program execution

Related Programs for Beginners: (Click down)

Store 8-bit data in memory

Add two 16-bit numbers

Left Shifting of a 16-bit data

Exchange the contents of memory locations

Pack-the-unpacked-BCD-numbers