|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
代码如下
assume cs:code,ds:data,
data segment
dw 0123h,0456h,0789h,0abch,0defh,0fedh,0cbah,0987h
data ends
stack segment
dw 0,0,0,0,0,0,0,0
stack segment
code segment
start:mov ax,stack
mov ss,ax
mov sp,16
mov ax,data
mov ds,ax
push ds:[0]
push ds:[2]
pop ds:[2]
pop ds:[0]
mov ax,4c00h
int 21h
code ends
end start
下面是错误提示
s5c2.asm(1) : error A2008: syntax error : data
s5c2.asm(3) : error A2034: must be in segment block
s5c2.asm(4) : fatal error A1010: unmatched block nesting : data
我把代码检查了几次,没发现有什么问题啊
|
|