您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 信息化管理 > 汇编语言输入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
本文标题:汇编语言输入100以内的十进制数用16进制输出
链接地址:https://www.777doc.com/doc-5226238 .html