News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

the program start address

Started by hutch--, March 22, 2021, 04:00:06 PM

Previous topic - Next topic

hutch--

If its 32 bit MASM, try a "start:" label and "end start" at the end of the code.

You may have to tell some more about what you are writing.

morgot

Use GetmoduleHandle,0
in eax will be base address of your module. Than,find EntryPoint in PE file in memory.
Sorry for the bad English

Vortex

Hi Dave,

Welcome to the Masm Forum.

Hutch is right. You can try this one :

include     \masm32\include\masm32rt.inc

.code

start:

    invoke  crt_printf,CTXT("Application start address = %X"),\
            ADDR start

    invoke  ExitProcess,0

END start


You should build a console application to view the output.

nidud

#3
deleted