The blog talks about variety of topics on Embedded System, 8085 microprocessor, 8051 microcontroller, ARM Architecture, C2000 Architecture, C28x, AVR and many many more. Also includes some projects that have been worked upon and also episodes to Embedded System Podcast.
Search This Blog
Monday, April 4, 2011
Find 2's complement of number
; 32 = 0011 0010 ; 32'S COMPLEMENT ; 1100 1101 = CD ; 2's COMPLEMENT IS 1100 1101 + 1 = 1100 1110 = CE LDA 2000H ; LOAD THE NUMBER CMA ; COMPLEMENT THE NUMBER ADI 01H ; STA 2001H ; STORE THE COMPLEMENT HLT ;
MVI A,10
ReplyDeleteCMA
HLT