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
运行效果
CloudCone商家在前面的文章中也有多次介绍,他们家的VPS主机还是蛮有特点的,和我们熟悉的DO、Linode、VuLTR商家很相似可以采用小时时间计费,如果我们不满意且不需要可以删除机器,这样就不扣费,如果希望用的时候再开通。唯独比较吐槽的就是他们家的产品太过于单一,一来是只有云服务器,而且是机房就唯一的MC机房。CloudCone 这次四周年促销活动期间,商家有新增独立服务器业务。同样的C...
老薛主机怎么样?老薛主机这个商家有存在有一些年头。如果没有记错的话,早年老薛主机是做虚拟主机业务的,还算不错在异常激烈的市场中生存到现在,应该算是在众多商家中早期积累到一定的用户群的,主打小众个人网站业务所以能持续到现在。这不,站长看到商家有在进行夏季促销,比如我们很多网友可能有需要的香港vps主机季度及以上可以半价优惠,如果有在选择不同主机商的香港机房的可以看看老薛主机商家的香港vps。点击进入...
GreencloudVPS此次在四个机房都上线10Gbps大带宽VPS,并且全部采用AMD处理器,其中美国芝加哥机房采用Ryzen 3950x处理器,新加坡、荷兰阿姆斯特丹、美国杰克逊维尔机房采用Ryzen 3960x处理器,全部都是RAID-1 NVMe硬盘、DDR4 2666Mhz内存,GreenCloudVPS本次促销的便宜VPS最低仅需20美元/年,支持支付宝、银联和paypal。Gree...