LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 557|回复: 1

as86编译文件出错(最简单的)

[复制链接]
发表于 2005-2-2 15:47:01 | 显示全部楼层 |阅读模式
nathaniel@myself:~/cvs$ cat test1.asm
CSEG    SEGMENT
        ASSUME  CS:CSEG
START:
        MOV     AL,DATA
        DATA    DB      0F
CSEG    ENDS
        END     START
nathaniel@myself:~/cvs$ as86 test1.asm
00001 0000           2E                         CSEG    SEGMENT
***** junk after operands...............................^
00002                       00000001>                   ASSUME  CS:CSEG
***** register used as identifier...............................^
***** illegal label.............................................^
00005 0004                        00                    DATA    DB      0F
***** junk after operands................................................^
***** illegal label......................................................^
00006 0005           2E                         CSEG    ENDS
***** junk after operands...............................^
00001 0000           2E                         CSEG    SEGMENT
***** junk after operands...............................^
***** junk after operands...............................^
00002                       00000001>                   ASSUME  CS:CSEG
***** register used as identifier...............................^
***** illegal label.............................................^
00005 0004                        00                    DATA    DB      0F
***** junk after operands................................................^
***** illegal label......................................................^
00006 0005           2E                         CSEG    ENDS
***** junk after operands...............................^

00007 errors
00000 warnings

帮手看看,我首次在linux下用汇编,不知道跟windows有什么不同
发表于 2005-2-2 22:27:35 | 显示全部楼层
程序的语法格式是masm的吧.
as86的声明可能不一样,多看看它的说明.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表