汇编:这几句代码怎么不能编译
INLCUDEIrvine32.inc.codemainPROCmoveeax,10000haddeax,40000hsubeax,20000hcallDumpRegsr...
INLCUDE Irvine32.inc
.code
main PROC
move eax, 10000h
add eax, 40000h
sub eax, 20000h
call DumpRegs
ret
main endp
END main
我是从书上抄来的,但是编译不了,谁可以帮我修改下吗?
D:\RadASM\Masm32\Bin\ML.EXE /c /coff /Cp /nologo /I"D:\RadASM\Masm32\Include" "test.asm"
Assembling: test.asm
test.asm(1) : error A2008: syntax error : INLCUDE
test.asm(3) : error A2013: .MODEL must precede this directive
test.asm(4) : error A2034: must be in segment block : main
test.asm(6) : error A2085: instruction or register not accepted in current CPU mode
test.asm(7) : error A2085: instruction or register not accepted in current CPU mode
test.asm(8) : error A2085: instruction or register not accepted in current CPU mode
test.asm(9) : error A2034: must be in segment block
test.asm(10) : error A2034: must be in segment block
test.asm(12) : fatal error A1010: unmatched block nesting : main
IDE是RadAsm 展开
.code
main PROC
move eax, 10000h
add eax, 40000h
sub eax, 20000h
call DumpRegs
ret
main endp
END main
我是从书上抄来的,但是编译不了,谁可以帮我修改下吗?
D:\RadASM\Masm32\Bin\ML.EXE /c /coff /Cp /nologo /I"D:\RadASM\Masm32\Include" "test.asm"
Assembling: test.asm
test.asm(1) : error A2008: syntax error : INLCUDE
test.asm(3) : error A2013: .MODEL must precede this directive
test.asm(4) : error A2034: must be in segment block : main
test.asm(6) : error A2085: instruction or register not accepted in current CPU mode
test.asm(7) : error A2085: instruction or register not accepted in current CPU mode
test.asm(8) : error A2085: instruction or register not accepted in current CPU mode
test.asm(9) : error A2034: must be in segment block
test.asm(10) : error A2034: must be in segment block
test.asm(12) : fatal error A1010: unmatched block nesting : main
IDE是RadAsm 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询