assume cs:code,ds:xinyi,ss:start
xinyi segment
db 'welcome to masm!'
db 0ah,2ch,79h
xinyi ends
start segment
dw 0,0,0,0,0,0,0,0
start ends
code segment
data:mov ax,start
mov ss,ax
mov ax,10h
mov sp,ax
mov di,0
mov bx,16
mov si,0
mov ax,xinyi
mov ds,ax
s: mov ax,[bx]
push ax
mov ax,[di]
push ax
mov dx,0b800h
mov ds,dx
pop ax
mov [si],ax
inc si
pop ax
mov [si],ax
inc di
loop s
inc bx
jmp short s
mov ah, 0
int 16h
mov ax,4c00h
int 21h
code ends
end data
幫忙看下怎麼錯了
我想在屏幕上顯示welcome to masm!
問題已解決,打擾了,謝謝