Write a program that subtracts the number stored in from 2600 H from the number stored in 2601 H. Store the absolute difference in memory location 2602 H as result.
2000 LXI H 2600 H 21
2001 00
2002 26
2003 MOV A M 7E
2004 INX H 23
2005 MOV B M 46
2006 CMP B B8
2007 JNC DOWN D2
2008 0D
2009 20
200A MOV C A 4F
200B MOV A B 78
200C MOV B C 41
200D DOWN SUB B 90
200E INX H 23
200F MOV M A 77
2010 HLT 76
.
Download
0 formats
No download links available.
2-2 ABSOLUTE DIFFERENCE BETWEEN TWO NUMBERS STORED IN CONSECUTIVE MEMORY LOCATIONS | NatokHD