SbTestJ proc uses esi MySize
mov esi, StackBuffer(MySize) ; works like a charm, no linker options needed
; ... use the buffer ...
StackBuffer()
ret
SbTestJ endp
SbTestN proc uses esi MySize
local buf[MySize+16]:byte ; error A2026: constant expected
local buffer:dword
lea eax,buf
and al,0F0h
add eax,16
mov buffer,eax
mov edi,eax
sub eax,eax
mov ecx,bufsize
rep stosd
; ... use the buffer ...
ret
SbTestN endp
;)