您好,欢迎访问三七文档
当前位置:首页 > 行业资料 > 国内外标准规范 > 汇编程序--键盘输入10个数-排序后输出
从键盘输入10个数,经过冒泡排序后输出显示在屏幕上。datasegmenttatdb10dup(?)asdb13,10,'$'dataendsstactsegmentsacdb120dup(?)stactendspushregmacropushbxpushcxpushdxendmpopregmacropopdxpopcxpopbxendmcodesegmentassumeds:data,cs:code,ss:stactmain:movax,datamovds,axmovax,stactmovss,axmovcx,10leasi,tatqq:movah,1int21hsubal,30hrolal,4movbl,almovah,1int21hsubal,30horbl,almov[si],bladdsi,1movah,2movdl,''int21hloopqqleadx,asmovah,09hint21hmovdx,10movcx,dxleabx,tatp3:moval,[bx]movsi,bxp1:incsicmp[si],aljaep2loopp1p4:xchg[bx],alpushregmovdh,[bx]movcx,2ms:roldh,4movbl,dhandbl,0fhaddbl,30hcmpbl,3ahjlmmaddbl,7hmm:movdl,blmovah,2int21hdeccxjnzmsmovdl,''movah,2hint21hpopregdecdxmovcx,dxincbxcmpbx,10jnzp3movah,4chint21hp2:xchgal,[si]deccxjcxzp4jmpp1codeendsendmain
本文标题:汇编程序--键盘输入10个数-排序后输出
链接地址:https://www.777doc.com/doc-5687864 .html