flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
codex32 02 Oct 2004, 18:56
I get this error on this line :
Code: invoke drawframe,[hWnd],9,9,101,201 How can i solve the error ? |
|||
![]() |
|
codex32 02 Oct 2004, 21:36
Thanks Mike. It works now.
With procedure definition, are the parameters by default dword size ? |
|||
![]() |
|
mike.dld 03 Oct 2004, 07:50
stdcall.inc:
Code: macro proc name,[arg] { common if used name name: all@args fix arg virtual at ebp+8 if ~ arg eq reverse first@args fix arg forward local ..arg ..arg dd ? ; <-- here arguments are decleared as dword arg equ ..arg common end if ..ret = $ - (ebp+8) end virtual local ..data,..size if defined ..size virtual at ebp - ..size else if ..ret push ebp mov ebp,esp end if end if ..data: macro enter size,level _% if size eq & level eq rb (4 - ($-..data) and 11b) and 11b if defined ..size ..size = $ - ..data end virtual else ..size = $ - ..data end if if ..ret | defined ..size push ebp mov ebp,esp if ..size sub esp,..size end if end if else enter size,level end if %_ macro return _% if ..ret | defined ..size leave end if if ..ret retn ..ret else retn end if %_ } Code: macro stdcall proc,[arg] { reverse pushd arg ; <-- see there? 'pushd arg' means 'push dword arg' common call proc } Code: macro invoke proc,[arg] { common if ~ arg eq reverse pushd arg ; <-- and there common call [proc] else call [proc] end if } |
|||
![]() |
|
codex32 15 Jun 2005, 13:11
Thanks (better late than never)
![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.