首页
社区
课程
招聘
[求助]懂汇编的朋友进来帮下忙!!
发表于: 2007-5-6 22:13 9671

[求助]懂汇编的朋友进来帮下忙!!

2007-5-6 22:13
9671
我在编译一asm程序的时候
出错了,错误提示如下
请教各位大大这个问题怎么解决
C:\RadASM\Masm32\Bin\ML.EXE /c /coff /Cp /nologo /I"C:\RadASM\Masm32\Include" "D:\a\a.asm"
Assembling: D:\a\a.asm
D:\a\a.asm(1) : error A2034: must be in segment block
D:\a\a.asm(3) : error A2034: must be in segment block : WriteFileRaw
D:\a\a.asm(4) : error A2012: PROC, MACRO, or macro repeat directive must precede LOCAL
D:\a\a.asm(5) : error A2012: PROC, MACRO, or macro repeat directive must precede LOCAL
D:\a\a.asm(6) : error A2012: PROC, MACRO, or macro repeat directive must precede LOCAL
D:\a\a.asm(7) : error A2012: PROC, MACRO, or macro repeat directive must precede LOCAL
D:\a\a.asm(8) : error A2012: PROC, MACRO, or macro repeat directive must precede LOCAL
D:\a\a.asm(9) : error A2012: PROC, MACRO, or macro repeat directive must precede LOCAL
D:\a\a.asm(10) : error A2012: PROC, MACRO, or macro repeat directive must precede LOCAL
D:\a\a.asm(11) : error A2012: PROC, MACRO, or macro repeat directive must precede LOCAL
D:\a\a.asm(13) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(14) : error A2006: undefined symbol : CreateFile
D:\a\a.asm(15) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(16) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(17) : error A2006: undefined symbol : CreateFile
D:\a\a.asm(18) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(19) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(20) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(21) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(22) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(23) : error A2006: undefined symbol : RtlZeroMemory
D:\a\a.asm(24) : error A2006: undefined symbol : DeviceIoControl
D:\a\a.asm(25) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(26) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(27) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(28) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(29) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(30) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(31) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(32) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(33) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(34) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(35) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(36) : error A2006: undefined symbol : ReadFile
D:\a\a.asm(37) : error A2006: undefined symbol : CloseHandle
D:\a\a.asm(38) : error A2034: must be in segment block
D:\a\a.asm(39) : error A2006: undefined symbol : CreateFile
D:\a\a.asm(40) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(41) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(42) : error A2006: undefined symbol : SetFilePointer
D:\a\a.asm(43) : error A2006: undefined symbol : ReadFile
D:\a\a.asm(44) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(45) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(46) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(47) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(48) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(49) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(50) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(51) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(52) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(53) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(54) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(55) : error A2006: undefined symbol : ReadFile
D:\a\a.asm(56) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(57) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(58) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(59) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(60) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(61) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(62) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(63) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(64) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(65) : error A2034: must be in segment block
D:\a\a.asm(66) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(67) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(68) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(69) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(70) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(71) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(72) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(73) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(74) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(75) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(76) : error A2006: undefined symbol : SetFilePointer
D:\a\a.asm(77) : error A2006: undefined symbol : ReadFile
D:\a\a.asm(78) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(79) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(80) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(81) : error A2034: must be in segment block
D:\a\a.asm(82) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(83) : error A2006: undefined symbol : SetFilePointer
D:\a\a.asm(84) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(85) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(86) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(87) : error A2006: undefined symbol : GlobalAlloc
D:\a\a.asm(88) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(89) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(90) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(91) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(92) : error A2085: instruction or register not accepted in current CPU mode
D:\a\a.asm(93) : error A2006: undefined symbol : WriteFile
D:\a\a.asm(94) : error A2006: undefined symbol : FlushFileBuffers
D:\a\a.asm(95) : error A2034: must be in segment block
D:\a\a.asm(96) : error A2034: must be in segment block
D:\a\a.asm(97) : error A2034: must be in segment block
D:\a\a.asm(98) : error A2034: must be in segment block
D:\a\a.asm(99) : error A2006: undefined symbol : GlobalFree
D:\a\a.asm(100) : error A2034: must be in segment block
D:\a\a.asm(101) : error A2034: must be in segment block
D:\a\a.asm(102) : error A2034: must be in segment block
D:\a\a.asm(103) : fatal error A1012: error count exceeds 100; stopping assembly

构建时发生错误.
总共编译时间 187 毫秒

[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!

收藏
免费 0
支持
分享
最新回复 (4)
雪    币: 642
活跃值: (2882)
能力值: ( LV10,RANK:170 )
在线值:
发帖
回帖
粉丝
2
把完整的代码传上来~
2007-5-6 23:04
0
雪    币: 291
活跃值: (213)
能力值: ( LV12,RANK:210 )
在线值:
发帖
回帖
粉丝
3
可能是少了.386 .model flat之类例行公事的语句
代码传上来看看吧
2007-5-6 23:56
0
雪    币: 150
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
4
没有导入inc文件,毛病挺多的~
2007-5-8 15:27
0
雪    币: 253
活跃值: (250)
能力值: ( LV9,RANK:210 )
在线值:
发帖
回帖
粉丝
5
提示第1行就有错,先把前几行放上来看看。
2007-5-8 19:50
0
游客
登录 | 注册 方可回帖
返回
//