代码改变世界

随笔分类 -  Assembly Program

汇编语言编写的输出三个数的最大和最小(原创)

2009-12-28 13:45 by java线程例子, 267 阅读, 收藏,
摘要: ;AX store the big number;cx store the small numberdatarea segmentx dw 50H y dw 59H z dw 51Ha1 db 'the big number:'b1 db 'the samll number:'datarea endsprognam segmentmain proc farassume cs:prognam,ds:datareastart:push dssub ax,axpush axmov ax,datareamov ds,axmov bx,0mov ax,x[bx]cmp a 阅读全文