Mail Archives: djgpp/1997/02/06/19:08:44
From: | "Paul Hooper" <unitech AT execpc DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | MACRO ... ENDM in DJGPP??
|
Date: | 6 Feb 1997 19:15:51 GMT
|
Organization: | Exec-PC BBS Internet - Milwaukee, WI
|
Lines: | 42
|
Message-ID: | <01bc1462$45688700$3929cfa9@p590>
|
NNTP-Posting-Host: | roundworm.execpc.com
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hello:
I have been looking all over the place to try to find a way to implement
macros. Is there an equivalent way to write the macro definition
MACRONAME macro arguments
....
....
endm
Where can I find more information on this? It doesn't appear to me that
this type of macro can be written with the #define directive, or am I
missing something? I would greatly appreciate any help.
Thank you.
some examples of macros I need to define ...
EXTIPRO macro name
STARTCSEG
_pname <extrn >, name, <:far>
$&name equ sh_polen
$$&name equ 2
ENDCSEG
endm
another example
RETCPRO macro
if _stackframe
if sh_dolen EQ 4 ;;Clear Stack Frame
pop ebp
else
pop bp
endif
endif
ret
endm
- Raw text -