汇编语言输入100以内的十进制数用16进制输出

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

DATASSEGMENTXDB0DATASENDS;--------------------------------CODESSEGMENTASSUMECS:CODES,DS:DATASSTART:MOVAX,DATASMOVDS,AXI0:MOVAH,1INT21HCMPAL,0DHJZL1CMPAL,'0'JBI0CMPAL,'9'JAI0SUBAL,30HMOVX,ALI1:MOVAH,1INT21HCMPAL,0DHJZL1CMPAL,'0'JBI1CMPAL,'9'JAI1SUBAL,30HMOVBH,ALMOVAL,XMOVBL,10MULBLADDAL,BHMOVX,AL;--------------------L1:MOVDL,10MOVAH,2INT21HMOVDL,13INT21H;--------------------MOVAL,XMOVAH,0MOVBL,16DIVBLADDAL,30HMOVDL,ALPUSHAXMOVAH,2INT21HPOPAXCMPAH,10JBL3ADDAH,07HL3:ADDAH,30HMOVDL,AHMOVAH,2INT21HEXIT:MOVAH,4CHINT21HCODESENDSENDSTART

1 / 2
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功