Home

Alter the contents of flag register in 8085

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