[讨论]大家帮我看下这个程序
data segment
as db 256 dup (?),'$'
data ends
code segment
assume cs:code,ds:data
start:
mov ax,data
mov ds,ax
mov si,0
mov al,0
lg1:
mov as[si],al
inc si
inc al
cmp al,255
jb lg1
mov si,0
mov cx,256
lg4:
mov bx,16
lg2:
dec bx
mov dl, offset as[si]
mov ah,2
int 21h
inc si
;cmp bx,0
;jb lg3
loop lg2
;cmp bx,254
jmp exit
;jmp lg2
lg3:
mov dl,0dh
mov ah,2
int 21h
mov dl, 0ah
mov ah,2
int 21h
jmp lg4
exit:
mov ah,4ch
int 21h
code ends
end start
要求显示ASCII表,但我显示是没问题就是格式老是不对,哪位老师或同学能指点下么?谢谢了