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

  • SEARCH
  • Home
  • 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 3628030
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:57:50+00:00 2026-05-18T23:57:50+00:00

Why can’t you call a pointer address from the EBP register? What I mean

  • 0

Why can’t you call a pointer address from the EBP register? What I mean by this is demonstrated in the follow code pattern.

  1. OpCode: ‘0xFF 0x10’ -> CALL DWORD PTR DS:[EAX]
  2. OpCode: ‘0xFF 0x11’ -> CALL DWORD PTR DS:[ECX]
  3. OpCode: ‘0xFF 0x12’ -> CALL DWORD PTR DS:[EDX]
  4. OpCode: ‘0xFF 0x13’ -> CALL DWORD PTR DS:[EBX]
  5. OpCode: ‘0xFF 0x14’ -> CALL DWORD PTR SS:[ESP+EDI]
  6. OpCode: ‘0xFF 0x15 0x012345678’ -> CALL DWORD PTR DS:[0x012345678]
  7. OpCode: ‘0xFF 0x16’ -> CALL DWORD PTR DS:[ESI]
  8. OpCode: ‘0xFF 0x16’ -> CALL DWORD PTR DS:[EDI]

‘5’ is noted in “Intel Instruct manual” but ‘6’ is never directly referred to and it is never explicitly stated that you cannot call it from the EBP register. I know this isn’t a useless feature but I was wondering why Intel choose those two registers to utilize, was it just a design choice or is their something I am missing? (I have a guess but I’m curious what the real reason is.)

  • 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-05-18T23:57:51+00:00Added an answer on May 18, 2026 at 11:57 pm

    You can call via EBP, its just encoded differently. You need the sequence

    0xff 0x55 0x00
    

    The thing is that there’s no way to encode EBP without an offset (the above specifies EBP with a byte offset of 0), as the encoding that you’d normally expect to be EBP without an offset (0x15) instead means 32-bit absolute.

    Also note your 0xff 0x14 example — in that case there’s a 3rd byte (a SIB byte) that encodes a base register, index register, and a scale factor. ESP+EDI like your example has a 3rd byte of 0x3c — you want the 3rd byte to be 0x24 to get just ESP

    As to why they chose EBP and ESP as the registers that can’t be encoded simply, its because ESP is the stack pointer (so is normally accessed by push/pop instructions) while EBP is the frame pointer, so you rarely want to dereference it directly without an offset. At least that was the case when the 80386 was designed.

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

Sidebar

Related Questions

Can I call a java class method from inside a flash movie?
Does anyone know how can I replace this 2 symbol below from the string
Can anyone tell me whats wrong in this code? when i try this i
Can I use the following across all browsers? <a href=# onclick=doSomething()>Click here.</a> Is this
Can anyone tell me what's wrong with this robots.txt? http://bizup.cloudapp.net/robots.txt The following is the
Can anyone pls let me know the exact c++ code of case sensitive comparison
Can I invoke an option on a COM Add-in from a VBA macro in
Can i get the source code for a WAMP stack installer somewhere? Any help
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
Can someone point to me or explain if this is true, you must not

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.