News:

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

MASM32 procedure

Started by ictsecurity0, September 24, 2010, 06:22:38 AM

Previous topic - Next topic

ictsecurity0

Dear all,

Sorry if this is newbie question, i just new to masm32 compiler, i can success to compile the following procedure block in tasm32 but not in masm32:

----------------------------------------------------------
get_pe   proc  fhn:dword, _pe:dword
.....
.....
...
push   dword ptr[ph.EntryPoint]
push   edi
call     check_ep
...
....
get_pe  endp



check_ep  proc   _entry:dword, off:dword
....
....
mov  eax, off               ---------------------->this masm32 compiler not complain anything
mov  edi, offset _entry ----------------------> error message "error A2098: invalid operand for OFFSET"

check_ep  endp
-------------------

my question, how to transfer the value from procedure block 1 to procedure block 2 in masm32??

thanks,
from ictsecurity0

BogdanOntanu

First read the rules and then explain to me the purpose of this ...
Ambition is a lame excuse for the ones not brave enough to be lazy.
http://www.oby.ro

BogdanOntanu

Quote from the Rules:
Quote
...
Low level coding is both allowed and encouraged but there will be no viral or trojan technology allowed including technical data under the guise of AV technology,
...

Ambition is a lame excuse for the ones not brave enough to be lazy.
http://www.oby.ro