阅读下列程序,添加注释并说明子程序decibin和子程序binihex功能,调试程序说明该完整程序的功能。
codesp segment
assume cs:codesp
main proc far
start:call decibin
call binihex
mov ah,4ch
int 21h
main endp
;
decibin proc near
mov bx,0
newchar:mov ah,1
int 21h
sub al,30h
jl exit
cmp al,9
jg exit
cbw
xchg ax,bx
mov cx,10
mul cx
xchg ax,bx
add bx,ax
jmp newchar
exit:ret
decibin endp
;
binihex proc near
mov ch,4
mov cl,4
rotate: rol bx,cl
mov al,bl
and al,0fh
add al,30h
cmp al,3ah
jl print
add al,07h
print: mov dl,al
mov ah,2
int 21h
dec ch
jnz rotate
ret
binihex endp
codesp ends
end start
。。。
啥意思