mcalc_row_sum MARCO index,arrayoffset,rowsize,elttype
LOCAL L1
push ebx
push ecx
push esi
mov eax,index
mov ebx,arrayoffset
mov ecx,rowsize
mul ecx
add ebx,eax
shr ecx,(type elttype/2)
mov eax,0
mov esi,0
L1:
IFIDNI<elttype>,<DWORD>
MOV EDX,elttype PTR[EBX+ESI*(TYPE elttype)]
ELSE
MOVZX EDX,elttype PTR[EBX+ESI*(TYPE elttype)]
ENDIF
add eax,edx
inc esi
loop L1
pop esi
pop ecx
pop ebx
ENDM
我想添加一个对矩阵行求和的宏如上,调用出后宏文件报错如下,想请教问题错在哪里:


------解决方案--------------------
小笔误吧,第一行将 MACRO 写成了 MARCO 了