Write an assembly language program to determine one's complement and two's complement of an 8-bit number.
Ans
One's complement of an 8-bit number
LDA 2501H
CMA
STA 2502H
HLT.
Two's complement of an 8-bit number
INR A