回 帖 发 新 帖 刷新版面

主题:找错

为什么这个程序用EMU8086能运行
MASM不能呀stack segment stack
stack ends
data segment
row db 0
data ends
code segment 
start: mov ax,data
mov ds,ax
mov row,0h
mov ah,2
mov bh,0
mov dx,00h
int 10h
again: mov ah,9
mov al,'/'
mov bh,0
mov bl,0ch
mov cx,199
int 10h
inc row
mov al,row
cmp al,199
jl again
mov ah,4ch
int 21h
code ends
end start

回复列表 (共1个回复)

沙发

堆栈没有大小

在code segment后加
assume cs:code,ds:data

我来回复

您尚未登录,请登录后再回复。点此登录或注册