Header Ads Widget

Ticker

6/recent/ticker-posts

Write an Assembly Language Program to find 1’s & 2’s complement of an 8-bit number.

LDA 8000H   ;Load the number from memory

CMA         ;Complement the accumulator
STA 8050H   ;Store the 1's complemented result
INR A       ;Increase A by 1
STA 8051H   ;Store the 2's complemented result
HLT         ;Terminate the program

Post a Comment

0 Comments