assume cs:code,ds:data
data segment
bval byte 'Welcome to masm!'
count word 0
data ends
stack segment
word 10 dup(0)
stack ends
code segment
start:mov ax,0b800h
mov es,ax
mov ax,stack
mov ss,ax
mov sp,11;设置堆栈指针
mov ax,0
mov si,ax
mov bx,ax;设置段地址和偏移地址寄存器
mov ax,data
mov ds,ax
mov cx,0bh
L1: add bx,0a0h
loop L1
mov cx,35
L2: add si,2
loop L2 ;将显示位置设置在屏幕中间
mov count,si;
mov di,0
mov cx,16
L3: mov dl,[di];拷贝要显示的字符
mov es:[bx+si],dl
add si,2
inc di
loop L3
mov si,count
inc si
L4: mov si,10100001 ;设置字体属性
add si,2
loop L4
mov ax,4c00h
int 21h
code ends
end start
////////////////////////////经反复检查,觉得没什么问题,但是就是不能显示,请帮忙看看,谢拉!