Message board for the users of flat assembler.
> Macroinstructions > fasmx - operating system independent HLL macros
Here is a custom HL macro collection which merges all the win32***.inc files into one.
Some features are:
Note: absolute references must use DWORD qualifier
call proc_name call proc_name, parameter, parameter
Or use an equ
call DWORD 50000h call DWORD [DWORD 50000h]
the_proc equ 50000h call the_proc call DWORD [the_proc]
ccall can be replaced with call by using the c keyword in the proc macro or by first prototyping the proc name
proc macro uses keyword extended with flags keyword to return flags
saves the eflags and clears the carry, zero and sign bits in the stacked copy (this is the default returned)
proc proc_name uses flags <register list>, parameters
proc macro ret modified to additionally return an optional value in eax
retc, retz and rets sets either the carry, zero or sign bit as well as returning an optional value in eax
ret ret esi ret 0 ret [variable]
retc esi retz 0 rets [variable]
modified pushd macro where strings are inlined replaced call with jump/push
added code keyword to push ascii code of one to four characters in string directly instead of pointer to string
modified pushd macro where addr keyword needs effective address of parameter eax used instead of edx and is first saved
defined all as ebx ecx edx esi edi to replace use of pusha, this accounts for eax being returned, ebp as frame pointer and redundant esp
proc proc_name uses flags all, parameter, parameter
win32ax.inc ; similar to win32ax.inc - ascii character, extended proc features, parameter count checking with warning only assembly continues
win32axp.inc ; similar to win32axp.inc - ascii character, extended proc features, parameter count checking with halt on error
win32w.inc ; similar to win32w.inc - wide character, extended proc features, parameter count checking with warning only assembly continues
win32wx.inc ; similar to win32wx.inc - wide character, extended proc features, parameter count checking with warning only assembly continues
win32wxp.inc ; similar to win32wxp.inc - wide character, extended proc features, parameter count checking with halt on error
Last edited by Mike Gonta on 03 Jul 2013, 00:53; edited 13 times in total
|25 Dec 2011, 16:53||
I see, the new mbr_tsr except this one is 32 bit.
Dude, FASM is fine as is IMO. I hope your extensions don't add bloat to programs with the HL implementation codes you are adding.
|25 Dec 2011, 18:06||
< Last Thread | Next Thread >
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.