News:

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

How to split a row in the asm source?

Started by Sergiu FUNIERU, February 24, 2010, 02:09:05 AM

Previous topic - Next topic

Sergiu FUNIERU

This code works fine.
invoke MessageBox,
    0,
    ADDR szMsg,
    ADDR szDlgTitle,
    MB_OK


This doesn't
invoke (What should I put here to work?)
MessageBox,
    0,
    ADDR szMsg,
    ADDR szDlgTitle,
    MB_OK


How can I tell the assembler to interpret two rows as one?

For instance, on a makefile I can do this:
proj_obj = $(OUTD)/main.obj     $(OUTD)/write.obj    $(OUTD)/fatal.obj   &
           $(OUTD)/womputil.obj $(OUTD)/direct.obj   $(OUTD)/posndir.obj


Is there an equivalent for &?

jj2007

Sergiu,
Line continuation is usually done with a backslash character. For invoke, a trailing comma does the job, too.

Sergiu FUNIERU

Quote from: jj2007 on February 24, 2010, 02:11:56 AM
Sergiu,
Line continuation is usually done with a backslash character. For invoke, a trailing comma does the job, too.
Thank you very much! That's exactly what I was looking for. My programs will be much easier to read (for me).