汇编程序--键盘输入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

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

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

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

×
保存成功