The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: Bieb on March 23, 2005, 05:36:14 PM

Title: MASM Options
Post by: Bieb on March 23, 2005, 05:36:14 PM
I know the important assembler options are .x86, CASEMAP, etc., but are there any that aren't required and aren't often used?
Title: Re: MASM Options
Post by: Tedd on March 23, 2005, 05:43:07 PM
I use these


.386
.model flat, stdcall
option casemap:none


The last line 'could' go, but I like to use case sensitive names. I suppose you could remove stdcall, but then you'd probably have to specify it in each proc, so there's no point.
I don't think three lines is too much extra overhead :P
Title: Re: MASM Options
Post by: Relvinian on March 23, 2005, 06:03:40 PM
Quote from: Tedd on March 23, 2005, 05:43:07 PM
I use these


.386
.model flat, stdcall
option casemap:none


The last line 'could' go, but I like to use case sensitive names. I suppose you could remove stdcall, but then you'd probably have to specify it in each proc, so there's no point.
I don't think three lines is too much extra overhead :P

I'm almost the same as you but I have two slight variations -- both variations are so I can use extended instruction sets plus lower level ASM coding and control over stdcall in the libraries I write.

1st:

.586
.model flat, stdcall
option casemap:none


2nd:

.586
.model flat
option casemap:none
Title: Re: MASM Options
Post by: MichaelW on March 23, 2005, 06:19:09 PM
Robert,

I'm hope I'm interpreting your question correctly.

See:

http://webster.cs.ucr.edu/Page_TechDocs/MASMDoc/ReferenceGuide/Chap_02.htm

And Using the OPTION Directive here:

http://webster.cs.ucr.edu/Page_TechDocs/MASMDoc/ProgrammersGuide/Chap_01.htm
Title: Re: MASM Options
Post by: roticv on March 24, 2005, 04:58:11 PM
Straight from msdn:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmasm/html/vclrf_masm_topicalcross-referencefordirectives.asp