. : : Assembly Language : : .  |  首页  |  我提出的问题  |  我参与的问题  |  我的收藏  |  消息中心   |  游客  登录  | 
刷新 | 提问 | 未解决 | 已解决 | 精华区 | 搜索 |
  《汇编语言》论坛 ->第一个程序
  管理员: assembly   [回复本贴] [收藏本贴] [管理本贴] [关闭窗口]
主题 : :  请教  :     编译的时候:2 severe error  [待解决] 回复[ 2次 ]   点击[ 299次 ]  
mend
[帖 主]   [ 发表时间:2008-11-17 23:56 ]   [引用]   [回复]   [ top ] 
荣誉值:0
信誉值:0
注册日期:2008-11-16 12:06
Microsoft (R) Macro Assembler Version 5.00
Copyright (C) Microsoft Corp 1981-1985, 1987.  All rights reserved.

Source filename [.ASM]: 1.asm
Object filename [1.OBJ]:
Source listing  [NUL.LST]:
Cross-reference [NUL.CRF]:
1.asm(1): error A2009: Symbol not defined: CODESEG
1.asm(3): error A2024: Segment parameters are changed

  50970 + 450470 Bytes symbol space free

      0 Warning Errors
      2 Severe  Errors

C:\masm5>



源程序:
assume cs:codeseg
codesg segment
  start:mov ax,0123h
        mov bx,0456h
        add ax,bx
        add ax,ax
        mov ax,4c00h
        int 21h
codesg ends
end start
mend
[第1楼]   [ 回复时间:2008-11-18 00:06 ]   [引用]   [回复]   [ top ] 
荣誉值:0
信誉值:0
注册日期:2008-11-16 12:06
哦 ,。 知道了,,,,是codeseg 的问题
aimy
[第2楼]   [ 回复时间:2008-11-19 15:37 ]   [引用]   [回复]   [ top ] 
荣誉值:4
信誉值:0
注册日期:2008-10-30 16:26
1.asm(1): error A2009: Symbol not defined: CODESEG 
1.asm(3): error A2024: Segment parameters are changed 
以后看括号里的数,几行有错都有,不要用记事本编写,EditPlus 2很不错(编译器只能帮你找到语法错误)

=======================================================================================

汇编学习群:47647963
需要登录后才能回帖 -->> 请单击此处登录
    Copyright © 2006-2024   ASMEDU.NET  All Rights Reserved