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商家我们还是比较熟悉的老牌的国内服务商,包括他们还有其他的产品品牌。这不看到商家的信息,有新增KVM架构轻量/迷你套餐,提供的机房包括香港云地和美国洛杉矶,适用全场8折优惠,月付29.6元起。LOCVPS是一家成立于2011年的稳定老牌国人商家,主要从事XEN、KVM架构的国外VPS销售,主推洛杉矶MC、洛杉矶C3、香港邦联、香港沙田电信、香港大埔、日本东京、日本大阪、新加坡等数据中心...
ftech怎么样?ftech是一家越南本土的主机商,成立于2011年,比较低调,国内知道的人比较少。FTECH.VN以极低的成本提供高质量服务的领先提供商之一。主营虚拟主机、VPS、独立服务器、域名等传统的IDC业务,数据中心分布在河内和胡志明市。其中,VPS提供1G的共享带宽,且不限流量,还可以安装Windows server2003/2008的系统。Ftech支持信用卡、Paypal等付款,但...
官方网站:点击访问亚州云活动官网活动方案:地区:美国CERA(联通)CPU:1核(可加)内存:1G(可加)硬盘:40G系统盘+20G数据盘架构:KVM流量:无限制带宽:100Mbps(可加)IPv4:1个价格:¥128/年(年付为4折)购买:直达订购链接测试IP:45.145.7.3Tips:不满意三天无理由退回充值账户!地区:枣庄电信高防防御:100GCPU:8核(可加)内存:4G(可加)硬盘:...