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
运行效果
欧路云 主要运行弹性云服务器,可自由定制配置,可选加拿大的480G超高防系列,也可以选择美国(200G高防)系列,也有速度直逼内地的香港CN2系列。所有配置都可以在下单的时候自行根据项目 需求来定制自由升级降级 (降级按天数配置费用 退款回预存款)。由专业人员提供一系列的技术支持!官方网站:https://www.oulucloud.com/云服务器(主机测评专属优惠)全场8折 优惠码:zhuji...
很久没有分享PhotonVPS的消息,最近看到商家VPS主机套餐有一些更新所以分享下。这是一家成立于2008年的国外VPS服务商,Psychz机房旗下的站点,主要提供VPS和独立服务器等,数据中心包括美国洛杉矶、达拉斯、芝加哥、阿什本等。目前,商家针对Cloud VPS提供8折优惠码,优惠后最低2G内存套餐每月4美元起。下面列出几款主机配置信息。CPU:1core内存:2GB硬盘:30GB NVm...
近日Friendhosting发布了最新的消息,新上线了美国迈阿密的云产品,之前的夏季优惠活动还在进行中,全场一次性45折优惠,最高可购买半年,超过半年优惠力度就不高了,Friendhosting商家的优势就是100Mbps带宽不限流量,有需要的朋友可以尝试一下。Friendhosting怎么样?Friendhosting服务器好不好?Friendhosting服务器值不值得购买?Friendho...