汇编网首页登录博客注册
wangzh001的学习博客
博客首页博客互动【做检测题】论坛求助

我的博客

个人首页 |  我的文章 |  我的相册 |  我的好友 |  最新访客 |  文章收藏 |  论坛提问 |  友情链接 |  给我留言  
图片载入中
学习动态
最新评论
好友圈
友情链接

[  游客   发表于  2009-04-22 17:05  ]

stack ends 
code segmeng (segment)

[  游客   发表于  2008-05-14 17:04  ]

我也碰到相同情况

[  wangzh001   发表于  2008-03-27 22:10  ]

我照着书里面的内容写的程序,为什么却不能编译呢?
以下是我编译的时候提示的错误..
Source filename [.ASM]: 2
Object filename [2.OBJ]:
Source listing  [NUL.LST]:
Cross-reference [NUL.CRF]:
2.ASM(1): error A2009: Symbol not defined: CODE
2.ASM(8): error A2105: Expected: instruction or directive
2.ASM(9): error A2024: Segment parameters are changed
2.ASM(10): error A2086: Data emitted with no segment
2.ASM(11): error A2086: Data emitted with no segment
2.ASM(12): error A2086: Data emitted with no segment
2.ASM(13): error A2086: Data emitted with no segment
2.ASM(14): error A2086: Data emitted with no segment
2.ASM(15): error A2086: Data emitted with no segment
2.ASM(16): error A2086: Data emitted with no segment
2.ASM(17): error A2086: Data emitted with no segment
2.ASM(18): error A2086: Data emitted with no segment
2.ASM(19): error A2086: Data emitted with no segment
2.ASM(20): error A2000: Block nesting error

  50866 + 415822 Bytes symbol space free

      0 Warning Errors
     14 Severe  Errors
程序如下:
assume cs:code,ds:data,ss:stack
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 ends
code segmeng
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

页码数(1):  1 
 
 请输入验证码  (提示:点击验证码输入框,以获取验证码