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