8085 Programming: 1's COMPLEMENT OF A 16-BIT NUMBER



8085 Programming




The 16bit number is stored in C050,C051

The answer is stored in C052,C053



  LXI H,C050

  MOV A,M

  CMA

  STA C052

  INX H

  MOV A,M

  CMA

  STA C053

  HLT

 EXAMPLE-> C050=85,C051=54

 Answer-> C052=7A,C053=AB



Comments

Popular posts from this blog

Write a Program to Add two 3x3 Matrix using C

C program for Unit Conversion

Write a Program to Add two 5x5 Matrix using C