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
运行效果
目前舍利云服务器的主要特色是适合seo和建站,性价比方面非常不错,舍利云的产品以BGP线路速度优质稳定而著称,对于产品的线路和带宽有着极其严格的讲究,这主要表现在其对母鸡的超售有严格的管控,与此同时舍利云也尽心尽力为用户提供完美服务。目前,香港cn2云服务器,5M/10M带宽,价格低至30元/月,可试用1天;;美国cera云服务器,原生ip,低至28元/月起。一、香港CN2云服务器香港CN2精品线...
IncogNet LLC是个由3个人运作的美国公司,主要特色是隐私保护,号称绝对保护用户的隐私安全。业务涵盖虚拟主机、VPS等,支持多种数字加密货币、PayPal付款。注册账号也很简单,输入一个姓名、一个邮箱、国家随便选,填写一个邮箱就搞定了,基本上不管资料的真假。当前促销的vps位于芬兰机房,全部都是AMD Ryzen系列的CPU,性能不会差的!5折优惠码:CRYPTOMONTH,支持:BTC,...
hypervmart怎么样?hypervmart是一家成立了很多年的英国主机商家,上一次分享他家还是在2年前,商家销售虚拟主机、独立服务器和VPS,VPS采用Hyper-V虚拟架构,这一点从他家的域名上也可以看出来。目前商家针对VPS有一个75折的优惠,而且VPS显示的地区为加拿大,但是商家提供的测速地址为荷兰和英国,他家的优势就是给到G口不限流量,硬盘为NVMe固态硬盘,这个配置用来跑跑数据非常...