assume cs:code,ds:data
data segment
msg db "hello world"
data ends
code segment
start:
mov ax,data
mov ds,ax
mov bx,0b800h
mov es,bx
mov cx,11
mov si,0
mov bx,0
mov ah,01000010b
s:mov al,ds:[si]
mov es:[bx],al
mov es:[bx+1], ah
inc si
add bx,2
loop s
mov ax,4c00h
int 21h
code ends
end start
运行结果:
本文出自 “努力奋斗,互相提高” 博客,请务必保留此出处http://c10086.blog.51cto.com/6433044/1414026