assume cs:code code segment main proc near begin: call input
mov dl, 0ah mov ah, 02h int 21h mov dl, 0dh int 21h call todec mov dl, 0ah int 21h mov dl, 0dh int 21h
jmp begin exit: mov ah, 4ch int 21h ret main endp
input proc near mov dh, 00h; mov bx, 0000h loop1: cmp dh, 03h jg ret1; mov ah, 07h int 21h cmp al, 1bh je exit mov dl, al mov ah, 02h int 21h sub al, 30h cmp al, 0ah jl num add al, 30h; sub al, 61h add al, 0ah; cmp al, 10h jl let jmp ret1 num: cmp al, 00h jl ret1 jmp bin let: cmp al, 0ah jl ret1 jmp bin bin: mov cl, 04h shl bx, cl mov ah, 00h add bx, ax add dh, 01h jmp loop1; ret1: ret input endp
todec proc near mov cx, 10000d mov ax, bx mov dx, 0000h div cx call output mov cx, 1000d mov ax, bx mov dx, 0000h div cx call output mov cx, 100d mov ax, bx mov dx, 0000h div cx call output mov cx, 10d mov ax, bx mov dx, 0000h div cx call output mov ax, bx call output ret2: ret todec endp
output proc near mov bx, dx add al, 30h mov dl, al mov ah, 02h int 21h ret3: ret output endp code ends end
运行效果
LOCVPS发来了针对XEN架构VPS的促销方案,其中美国洛杉矶机房7折,其余日本/新加坡/中国香港等机房全部8折,优惠后日本/新加坡机房XEN VPS月付仅29.6元起。这是成立较久的一家国人VPS服务商,目前提供美国洛杉矶(MC/C3)、和中国香港(邦联、沙田电信、大埔)、日本(东京、大阪)、新加坡、德国和荷兰等机房VPS主机,基于XEN或者KVM虚拟架构,均选择国内访问线路不错的机房,适合建...
RepriseHosting是成立于2012年的国外主机商,提供独立服务器租用和VPS主机等产品,数据中心在美国西雅图和拉斯维加斯机房。商家提供的独立服务器以较低的价格为主,目前针对西雅图机房部分独立服务器提供的优惠仍然有效,除了价格折扣外,还免费升级内存和带宽,商家支持使用支付宝或者PayPal、信用卡等付款方式。配置一 $27.97/月CPU:Intel Xeon L5640内存:16GB(原...
美国高防服务器提速啦专业提供美国高防服务器,美国高防服务器租用,美国抗攻击服务器,高防御美国服务器租用等。我们的海外高防服务器带给您坚不可摧的DDoS防护,保障您的业务不受攻击影响。HostEase美国高防服务器位于加州和洛杉矶数据中心,均为国内访问速度最快最稳定的美国抗攻击机房,带给您快速的访问体验。我们的高防服务器配有最高层级的DDoS防护系统,每款抗攻击服务器均拥有免费DDoS防护额度,让您...