鱼C论坛

 找回密码
 立即注册
查看: 2715|回复: 2

用masm编译不了,老出错老大帮看一下

[复制链接]
发表于 2012-6-27 21:31:13 | 显示全部楼层 |阅读模式
1鱼币
assume cs:codesg,ds:datasg
datasg segment
   db 'FucK'
datasg ends
codesg segment
ks: mov ax,datasg
    mov ds,ax
mov bx,0
mov cx,4
s:  mov al,[bx]
    and al,11011111B
mov [bx],al
inc bx
loop s
mov ax,4c00H
int 21H
codesg ends
end ks



G:\cs>masm 2.asm
Microsoft (R) Macro Assembler Version 5.00
Copyright (C) Microsoft Corp 1981-1985, 1987.  All rights reserved.
Object filename [2.OBJ]:
Source listing  [NUL.LST]:
Cross-reference [NUL.CRF]:
Open segments: DATASG
2.asm(1): error A2009: Symbol not defined: CODESG
2.asm(3): warning A4001: Extra characters on line
2.asm(6): warning A4001: Extra characters on line
2.asm(10): error A2009: Symbol not defined: S
2.asm(11): warning A4001: Extra characters on line
2.asm(12): error A2009: Symbol not defined: KS
  50518 + 450010 Bytes symbol space free
      3 Warning Errors
      3 Severe  Errors
G:\cs>








想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
发表于 2012-6-27 22:09:49 | 显示全部楼层
没错呢!!可能你的连接link有问题。我这里能运行呢
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

 楼主| 发表于 2012-6-28 18:03:29 | 显示全部楼层
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

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

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-10-8 06:26

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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