Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8036133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:31:04+00:00 2026-06-05T02:31:04+00:00

I noticed that in Assembly segments are used in opcodes. Example: MOV DWORD PTR

  • 0

I noticed that in Assembly segments are used in opcodes.

Example:

MOV DWORD PTR SS:[EBP-30],30

I think that “PTR SS:” is used to specify that EBP-30 comes from the stack? (SS: stack segment)
Am I right or am I completely wrong? 🙂 And, could you please tell me the difference between the example above and

MOV DWORD PTR[EBP-30],30

And what about DS (data segment) used in opcodes?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T02:31:05+00:00Added an answer on June 5, 2026 at 2:31 am
    MOV DWORD PTR SS:[EBP-30],30
    

    There are two separate modifiers here, DWORD PTR and SS:.

    The first one tells us that we want to store a word at the address pointed to. This is needed when the assembler cannot tell that from the operands of the instruction. Here 30 could just as well be a byte to store.

    The SS: is a segment prefix, saying that we want to use an address relative to the stack segment. In this case it isn’t strictly needed, because that is the default when using the ESP or EBP registers. So the second version of the instruction is identical to the first one.

    Had you used EBX instead of EBP there would have been a difference!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I noticed that after I use AssemblyDelaySignAttribute to indicate that an assembly is in
I noticed that when I installed StructureMap from NuGet into my ASP.NET MVC3 project,
I have noticed that it is possible to register for example v1.0.0.0 of an
I am working on a project which generates an assembly. I just noticed that
I am learning C and assembly language together. I noticed that assembly is a
I'm a beginner in assembly language and have noticed that the x86 code emitted
I have just noticed that my simple program has its data and stack segments
After executing gcc -m64 -O test.c -save-temps , I noticed that: mov %edi, %edi
Let me try to ask this question from a different angle. I noticed that
I noticed that when you set the Platform target in Visual Studio to Any

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.