Search This Blog

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:

  1. How to find using without cma instruction ?

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete