assume cs:codesg,ds:datasg
datasg segment
db 'welcome to masm!'
datasg ends
codesg segment
start: mov ax,datasg
mov ds,ax
mov ax,0b800h
mov es,ax
mov bx,728h
mov si,0
mov cx,10h
s: mov al,[si]
mov ah,00000010b
mov es:[bx],ax
mov al,[si]
mov ah,00100100b
mov es:[bx].0a0h,ax
mov al,[si]
mov ah,01110001b
mov es:[bx].0a0h.0a0h,ax
inc si
add bx,2
loop s
mov ax,4c00h
int 21h
codesg ends
end start
效果: