实验10
第一题8086
assume cs:code
data 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 ah,0
mov al,80
mul dh
add dl,dl
add al,dl
mov bx,ax
mov ax,0b800h
mov es,ax
mov dl,cl
show:
mov ch,0
mov cl,ds:[si]
jcxz ok
mov es:[bx],cl
mov es:[bx+1],dl
add si,1
add bx,2
jmp short show
ok:
ret
code ends
end start