我刚刚开始学习汇编。我正在调用DumpMem来显示数组,但是我得到了错误未定义符号:DumpMem。我当时假设DumpMem应该包含在导入的Irvine 32库中。任何人都可以善良地建议这里可能出了什么问题吗?谢谢。
.386
.model flat, stdcall
.stack 4096
includelib irvine32.lib
ExitProcess PROTO, dwExitCode: DWORD
.data
arrayfib DWORD 35 DUP (99h)
.code
main PROC
mov eax, 0
mov edi, 1
L1:
sub ebp, 2
cmp ebp, 0
js FINISH
add eax, edi
add edi, eax
LOOP L1
FINISH:
test eax, 1
jz FINISHEVEN
mov edx, eax
ret
FINISHEVEN:
mov edx, edi
ret
mov esi, OFFSET arrayfib
mov ecx, LENGTHOF arrayfib
mov ebx, TYPE arrayfib
call DumpMem
INVOKE ExitProcess, 0
main ENDP
END main