assume cs:code
data segment
db'welcome to tasm!',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 ax,0b800h
mov es,ax
mov cx,16
s:mov al,ds:[si]
mov es:[si],al
mov ah,02h
mov es:[si+1],ah
inc si
loop s
ret
code ends
end start
我想把'welcome to tasm!'这个字符串输到屏幕上,我的方法是向显存的缓冲区内写入,然后再输出,但是好象这段程序没用啊,请大峡们帮小弟我检查检查,看看哪有问题?先谢谢了!