代码中的这些行可以去掉不?
data segment
bin dw 1101010110010111b
data ends
code segment
assume cs:code,ds:data
start: mov ax,data
mov ds,ax
mov di,offset bin
mov ax,[di]
mov bx,ax ;这一行可以去掉不?
mov ch,4
sft: mov cl,4
rol bx,cl ;就是这行直接用ax?
mov ax,bx ;这行也可以不要了?
and ax,000fh
add al,30h
cmp al,3ah
jl prn
add al,07h
prn: mov dl,al
mov ah,02h
int 21h
dec ch
jnz sft
mov ah,4ch
int 21h
code ends
end start
我的问题:就是上面那些后面加注释的行可以去掉不?如果不能去掉是为什么 ?加着有什么作用?