11 4 ASCII TO HEX

preview_player
Показать описание
Two ASCII codes for hexadecimal digit are stored at memory locations 2700 H and 2701 H. Write a program to convert the codes in to their hexadecimal equivalents. . Store the 2 respective hexadecimal equivalents as a data in a single memory location 2702 H.
2000 LXI H 2700 H 21
2001 00
2002 27
2003 MOV A M 7E
2004 CPI 40 H FE
2005 40
2006 JC DOWN DA
2007 0B
2008 20
2009 SUI 07 H D6
200A 07
200B DOWN SUI 30 H D6
200C 30
200D MOV C A 4F
200E INX H 23
200F MOV A M 7E
2010 CPI 40 H FE
2011 40
2012 JC BELOW DA
2013 17
2014 20
2015 SUI 07 H D6
2016 07
2017 BELOW SUI 30 H D6
2018 30
2019 RRC 0F
201A RRC 0F
201B RRC 0F
201C RRC 0F
201D ADD C 81
201E INX H 23
201F MOV M A 77
2020 HLT 76
Рекомендации по теме