I know the important assembler options are .x86, CASEMAP, etc., but are there any that aren't required and aren't often used?
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
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
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
Straight from msdn:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmasm/html/vclrf_masm_topicalcross-referencefordirectives.asp