The MASM Forum

64 bit assembler => 64 bit assembler. Conceptual Issues => Topic started by: Lupus on February 18, 2022, 06:41:33 AM

Title: Simplified Segments
Post by: Lupus on February 18, 2022, 06:41:33 AM
In the MASM reference, Simplified Segments Directives (.CODE, .DATA, etc.) are said to only be applicable to 32 bit assembly. However, I have seen several 64 bit examples where these directives are allowed. What's going on?
Title: Re: Simplified Segments
Post by: Gunther on February 18, 2022, 07:03:32 AM
Lupus,

Quote from: Lupus on February 18, 2022, 06:41:33 AM
In the MASM reference, Simplified Segments Directives (.CODE, .DATA, etc.) are said to only be applicable to 32 bit assembly. However, I have seen several 64 bit examples where these directives are allowed. What's going on?

the simplified directives are valid not only for 32 but also for 16 or 64 bit. You can take a look at this thread (http://masm32.com/board/index.php?topic=9661.msg105714#msg105714) for example.
Title: Re: Simplified Segments
Post by: Lupus on February 18, 2022, 07:48:42 AM
Thanks Gunther.
Title: Re: Simplified Segments
Post by: Lupus on February 18, 2022, 07:51:03 AM
Gunther. Do you know why the MASM reference would list the directives for 32 bit only?
Title: Re: Simplified Segments
Post by: Gunther on February 18, 2022, 08:45:51 AM
Lupus,

Quote from: Lupus on February 18, 2022, 07:51:03 AM
Gunther. Do you know why the MASM reference would list the directives for 32 bit only?

I don't know. But what is certain is that MASM will continue to be maintained and developed. This obviously does not apply to documentation.
Title: Re: Simplified Segments
Post by: Lupus on February 18, 2022, 09:16:19 AM
Thanks again Gunther.
Title: Re: Simplified Segments
Post by: Gunther on February 18, 2022, 10:17:59 AM
You're welcome.