MASM5通过
; Program By K-Res 2004-12-28
csg segment
main proc far
assume cs:csg
start: ;start address
push dx ;save dx
xor ax,ax ;set ax to zero
push ax ;save ax
mov dl,0fh ;assign 15 to dl to display ascii chr
mov cx,0fh ;assign 15 to cx outer loop
lop1:
push cx ;save outer loop counter cx
mov cx,10h ;assign 16 to cx inner loop counter
lop2:
inc dl ;increase dl by 1(10h)
mov ah,2 ;call int21 to display
int 21h
push dx
mov dl,0 ;display space
mov ah,2
int 21h
pop dx
loop lop2 ;inner loop ends here
pop cx
push dx
mov dl,13 ;display return and begin a new line
mov ah,2
int 21h
mov dl,10
mov ah,2
int 21h
pop dx
loop lop1 ;outer loop ends here
ret
main endp
csg ends
end start
博主友情提示:
如您在评论中需要提及如QQ号、电子邮件地址或其他隐私敏感信息,欢迎使用>>博主专用加密工具v3<<处理后发布,原文只有博主可以看到。