实验十
assume cs:codedata segment
db 'Welcome to masm!',0
data ends
code segment
start: mov dh,8
mov dl,3
mov cl,2
mov ax,data
mov ds,ax
mov si,0
call show_str
mov ax,4c00h
int 21h
show_str:
mov al,dh
mov bl,160
mul bl
add dl,dl
add al,dl
mov bx,0B800h
mov es,bx
mov bx,ax
mov ah,cl
s: mov cl,
mov ch,0
jcxz ok
mov di,1
mov al,
mov es:,ax
inc si
add bx,2
jmp short s
ok: ret
code ends
end start
页:
[1]