打印从10h到100h 16*15
.model small .code mov al,16 mov cx,240 xor bx,bx jmp again again: mov ah,2 mov dl,al int 21h;输出一个字符串 inc al;加一 inc bx .if bx==16 mov ah,2 mov dl,0DH int 21h mov dl,0AH INT 21H loop again .endif loop again .exit 0 end
.model small .code mov al,16 mov cx,240 xor bx,bx jmp again again: mov ah,2 mov dl,al int 21h;输出一个字符串 inc al;加一 inc bx .if bx==16 mov ah,2 mov dl,0DH int 21h mov dl,0AH INT 21H loop again .endif loop again .exit 0 end