主题:初学者的小问题
在屏幕中显示welcome to masm!
我用2003系统运行command进去masm *.asm后link *.asm出来了*.exe可运行*.exe什么都没有出来。这是为什么呢?
data segment
db 'welcome to masm!'
data ends
code segment
start: mov ax,data
mov ds,ax
mov bx,0
mov cx,10
mov ax,0B872h
mov es,ax
mov si,0
s: mov al,ds:[bx]
mov es:[si],al
inc bx
inc si
loop s
mov ax,4C00H
int 21H
code ends
end start
我用2003系统运行command进去masm *.asm后link *.asm出来了*.exe可运行*.exe什么都没有出来。这是为什么呢?
data segment
db 'welcome to masm!'
data ends
code segment
start: mov ax,data
mov ds,ax
mov bx,0
mov cx,10
mov ax,0B872h
mov es,ax
mov si,0
s: mov al,ds:[bx]
mov es:[si],al
inc bx
inc si
loop s
mov ax,4C00H
int 21H
code ends
end start