The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: ictsecurity0 on September 24, 2010, 06:22:38 AM

Title: MASM32 procedure
Post by: ictsecurity0 on September 24, 2010, 06:22:38 AM
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
Title: Re: MASM32 procedure
Post by: BogdanOntanu on September 24, 2010, 07:32:44 AM
First read the rules and then explain to me the purpose of this ...
Title: Re: MASM32 procedure
Post by: BogdanOntanu on September 28, 2010, 06:13:59 PM
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,
...