在屏幕上把“welcome to masn”显示出来。。。程序为什么不能显示
在屏幕上把“welcome to masn”显示出来。。。程序为什么不能显示assume ds:A, cs:B, ss:X
A segment
db 'welcome to masn!'
A ends
X segment
dw 8 dup (0)
X ends
B segment
start:mov ax,A
mov ds,ax
mov bx,0
mov ax,X
mov ss,ax
mov sp,10h
mov ax,0b123h
mov es,ax
mov si,0
mov cx,16
s:push cx
mov al,ds:[bx]
mov es:[si],al
inc bx
sub si,2
loop s
push si
mov al,02h
mov si,1
mov cx,16
s1:
mov es:[si],al
sub si,2
loop s1
pop cx
pop si
mov ax,4c00h
int 21h
B ends
end start