The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: Sergiu FUNIERU on February 24, 2010, 02:09:05 AM

Title: How to split a row in the asm source?
Post by: Sergiu FUNIERU on February 24, 2010, 02:09:05 AM
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 &?
Title: Re: How to split a row in the asm source?
Post by: 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.
Title: Re: How to split a row in the asm source?
Post by: Sergiu FUNIERU on February 24, 2010, 02:18:54 AM
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).