Author Topic: Simplified Segments  (Read 847 times)

Lupus

  • Regular Member
  • *
  • Posts: 4
Simplified Segments
« 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?

Gunther

  • Member
  • *****
  • Posts: 4090
  • Forgive your enemies, but never forget their names
Re: Simplified Segments
« Reply #1 on: February 18, 2022, 07:03:32 AM »
Lupus,

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 for example.
Get your facts first, and then you can distort them.

Lupus

  • Regular Member
  • *
  • Posts: 4
Re: Simplified Segments
« Reply #2 on: February 18, 2022, 07:48:42 AM »
Thanks Gunther.

Lupus

  • Regular Member
  • *
  • Posts: 4
Re: Simplified Segments
« Reply #3 on: February 18, 2022, 07:51:03 AM »
Gunther. Do you know why the MASM reference would list the directives for 32 bit only?

Gunther

  • Member
  • *****
  • Posts: 4090
  • Forgive your enemies, but never forget their names
Re: Simplified Segments
« Reply #4 on: February 18, 2022, 08:45:51 AM »
Lupus,

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.
Get your facts first, and then you can distort them.

Lupus

  • Regular Member
  • *
  • Posts: 4
Re: Simplified Segments
« Reply #5 on: February 18, 2022, 09:16:19 AM »
Thanks again Gunther.

Gunther

  • Member
  • *****
  • Posts: 4090
  • Forgive your enemies, but never forget their names
Re: Simplified Segments
« Reply #6 on: February 18, 2022, 10:17:59 AM »
You're welcome.
Get your facts first, and then you can distort them.