News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Hidden syntax for invoke ??!

Started by ToutEnMasm, June 14, 2006, 10:05:54 PM

Previous topic - Next topic

ToutEnMasm


reading a source code,I see a way to avoid the use of invoke at each line,that is:

EXTERNDEF ExitProcess@4:PROC
ExitProcess EQU <invoke pr1 PTR ExitProcess@4>


listing
               ExitProcess,0
000001FC  6A 00      *       push   +000000000h
000001FE  E8 00000000 E   *       call   near  ptr ExitProcess@4

normal invoke
               invoke atodw,addr phrase
000004CD  8D 45 F1      *       lea    eax, byte  ptr ss:[ebp]+0F1h
000004D0  50         *       push   eax
000004D1  E8 00000000 E   *       call   atodw      ;not near call



It's clear that pr0 mean PROTO with zero DWORD and so on,prN with N dword
I search MSDN for the  "pr" ,the BNF grammar and other's doc,but I don't find this.

.
Where is referenced pr(N) ??
                                               ToutEnMasm

                         

MazeGen


ToutEnMasm


Thanks,small letter for macros made i take the wrong path.
                         ToutEnMasm