没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
;从键盘输入一个16位2进制数,以回车结束输入,将这个数保存在BX中
StringBIN2BIN proc near
push ax
push cx
lea dx,tipB
mov ah,9
int 21h
call CTLF
xor bx,bx
newchar2:mov ah,1
int 21h
cmp al,0Dh
je ret2
sub al,30h
jl exit2
cmp al,1d
jg exit2
cbw
xchg ax,bx
mov cx,2d
mul cx
xchg ax,bx
add bx,ax
jmp newchar2
exit2: pop cx
StringBIN2BIN proc near
push ax
push cx
lea dx,tipB
mov ah,9
int 21h
call CTLF
xor bx,bx
newchar2:mov ah,1
int 21h
cmp al,0Dh
je ret2
sub al,30h
jl exit2
cmp al,1d
jg exit2
cbw
xchg ax,bx
mov cx,2d
mul cx
xchg ax,bx
add bx,ax
jmp newchar2
exit2: pop cx
资源评论
凉秋cds
- 粉丝: 39
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功