【求助】masm编译出现错误,求已通过的大神帮忙解释下,谢谢
本帖最后由 z411324 于 2021-2-8 21:09 编辑【求助】masm编译出现错误,求已通过的大神帮忙解释下,谢谢
电脑环境:XP (注:虚拟机)
课程:21讲内案例
错误:
无法上传图片{:5_111:}
1.asm<1>:error A2105: Expected: colon
50972 + 450532 Bytes symbol space free
0 Warning Errors
1 Severe Errors
求解,谢谢各位好心人了!!
附带下原始代码:
assume cs:abc
abc segment
mov ax, 2
add ax, ax
add ax, ax
mov ax, 4c00H
int 21H
abc ends
end
出现的错误:
E:\TRY>E:
E:\TRY>cd E:\TRY
E:\TRY>E:\TRY\visualassembly\masm\masm.exe 1.asm;
Invalid keyboard code specified
Microsoft (R) Macro Assembler Version 5.00
Copyright (C) Microsoft Corp 1981-1985, 1987.All rights reserved.
1.asm(1): error A2105: Expected: colon
50896 + 450480 Bytes symbol space free
0 Warning Errors
1 SevereErrors
在线求好心人 你复制粘贴发代码呀,多方便
E:\TRY>E:
E:\TRY>cd E:\TRY
E:\TRY>E:\TRY\visualassembly\masm\masm.exe 1.asm;
Invalid keyboard code specified
Microsoft (R) Macro Assembler Version 5.00
Copyright (C) Microsoft Corp 1981-1985, 1987.All rights reserved.
1.asm(1): error A2105: Expected: colon
50896 + 450480 Bytes symbol space free
0 Warning Errors
1 SevereErrors
小甲鱼的铁粉 发表于 2021-2-8 20:56
你复制粘贴发代码呀,多方便
E:\TRY>E:
E:\TRY>cd E:\TRY
E:\TRY>E:\TRY\visualassembly\masm\masm.exe 1.asm;
Invalid keyboard code specified
Microsoft (R) Macro Assembler Version 5.00
Copyright (C) Microsoft Corp 1981-1985, 1987.All rights reserved.
1.asm(1): error A2105: Expected: colon
50896 + 450480 Bytes symbol space free
0 Warning Errors
1 SevereErrors
这就是显示的错误 z411324 发表于 2021-2-8 21:02
E:\TRY>E:
E:\TRY>cd E:\TRY
发代码,能明白啥意思不,光看报错信息能看出啥??? assume cs:abc
abc segment
mov ax, 2
add ax, ax
add ax, ax
mov ax, 4c00H
int 21H
abc ends
end
这是原始代码 {:10_269:}
找到错误的地方了!
1、assume cx错打为:assume cs
2、cx 后面的冒号 应该为大写的冒号,错打为汉字的冒号
终于测试成功了,感谢大家!!
页:
[1]