新手学汇编,这错误是什么意思?
最近想学汇编语言,看了书上的一个程序,写完发现无法通过编译。程序如下:TITLE Add and Subtract
; this program adds and subtracts 32-bit integers.
.i386
.model flat,stdcall
.stack 4096
ExitProcess PROTO, dwExitCode:DWORD
DumpRegs PROTO
.code
main PROC
mov eax,10000h
add eax,40000h
sub eax,20000h
INVOKE ExitProcess,0
main ENDP
END main
错误揭示如下:
F:\Assemble.asm(13) : error A2034: must be in segment block
F:\Assemble.asm(14) : fatal error A1010: unmatched block nesting : main
请大家帮忙看一下是怎么回事。