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
Saturday, April 23, 2011
Write Assembly language program To add 2 16-bit BCD numbers
; HL = 2435 ; DE = 6578 ; METHOD 1
LHLD 6578H; XCHG; DE = 6578 LHLD 2435H; HL = 2435 MOV A,L; ADD E; DAA; STA 2000H; MOV A,H; ADC D; DAA; STA 2001H; HLT;
No comments:
Post a Comment