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 someone explain why the compiler accepts only this code template<typename L, size_t offset,
Does anyone know how can I replace this 2 symbol below from the string
can any one tell me how can change this java code into objective c.is
Can PHP PDO extension bind nested objects automatically ? I mean using foreign key
Can I run this in a Windows command prompt like I can run it
Can anybody help me? What should be the datatype for this type -07:00:00 of
Can I register a .Net COM class with the SingleUse -flag? The reason I
Can't figure out how to do this in a pretty way : I have
Can MOSS integrate and get user profiles from multiple Active Directory and/or LDAP stores?
Can a Visual Studio 2008 custom tool be passed additional parameters from the custom

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.