News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

pass by ref pascal inline myParam vs [myParam]

Started by John T, October 26, 2015, 12:41:51 PM

Previous topic - Next topic

TWell

#15
MSDN info hereSIZE_T WINAPI HeapSize(
  _In_ HANDLE  hHeap,
  _In_ DWORD   dwFlags,
  _In_ LPCVOID lpMem
);
so simple proto for asmHeapSize PROTO STDCALL :DWORD,:DWORD,:DWORD

BUT
In Free Pascal inline asm don't accept proto's.
Free Pascal already have function definitions in Windows.ppufunction HeapSize(hHeap:HANDLE; dwFlags:DWORD; lpMem:LPCVOID):PTRUINT; external 'kernel32' name 'HeapSize';inline use it too?

Bare Free Pascal ppc386.exe ftp://ftp.freepascal.org/pub/fpc/dist/2.6.4/bootstrap/
Minimal rtl in mrtl.zip for inline asm test.

TouEnMasm

;API heaapi.sdk  XMASM 32 or QWORD if WIN64
HeapSize PROTO hHeap:HANDLE ,dwFlags:DWORD ,lpMem:XMASM
Fa is a musical note to play with CL