assume cs:code,ds:data
data segment
db "Hello World";字符串的输入
data ends
code segment
start:
mov ax,data
mov ds,ax;定位字符串数据
mov ax,0B800H
mov es,ax;定位8086显示区域
mov bx,0
mov si,319
mov cx,11
s:
mov ah,[bx]
mov al,00000111b
mov es:[si],ax
add bx,1
add si,2
loop s;将字符串移动到屏幕显示区域
all:
jmp all
mov ax,4C00h
int 21h
code ends
end start