Monday, April 4, 2011

Find 1's complement of number


; 32 = 0011 0010
; 32'S COMPLEMENT
; 1100 1101 = CD


LDA 2000H ; LOAD THE NUMBER
CMA  ; COMPLEMENT THE NUMBER
STA 2001H ; STORE THE COMPLEMENT
HLT  ;

2 comments: