排版有点烂。。。。
assume cs:code,ds:data
data segment
db 'welcome to masm'
data ends
code segment
start:
mov ax,data
mov ds,ax
mov bl,0A0h
mov ax,0B800h ;段地址0B800h读入es中
mov es,ax
mov si,0
mov cx,15 ;循环读入字符
s:mov al,[si] ;将字符读入B800h段中的偏移地址
mov es:[bx],al
mov byte ptr es:[bx+1],01110001b ;设置颜色
inc si
inc bx
inc bx
loop s
mov ax,4c00h
int 21h
code ends
end start