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 359907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T12:26:17+00:00 2026-05-12T12:26:17+00:00

If I have a call procedure on asm: push ebp mov ebp esp sub

  • 0

If I have a call procedure on asm:

push ebp
mov ebp esp
sub ebp, 8

Can I assume right now that both [ebp-4] and [ebp-8] are initialized to zero, or can they have random values?

  • 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-12T12:26:18+00:00Added an answer on May 12, 2026 at 12:26 pm

    They will have whatever value was in that memory before, which is unlikely to be 0. This is not ‘random’ per se – indeed, it’s probably somewhat predictable; this usually doesn’t do any good, but just don’t get any clever ideas about using it for a RNG 🙂

    Remember, all you did in that code was:

    • Save the current value of EBP to [ESP] then subtract 4 from ESP
    • Copy ESP to EBP
    • Subtract 8 from EBP (did you mean ESP?)

    The CPU won’t read anything into this beyond that, unless you tell it to. That is the essence of assembler. Moreover, when used in normal arithmetic, ESP is not special cased at all – it’s just a number.

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

Sidebar

Related Questions

I want to call procedure at certain time, so I instatinate an event that
I am trying to make a remote procedure call of GWT RPC service. I
GWT dialog on demo app has a title (or caption) of Remote Procedure Call.
I have a socket listener which hangs on recv function: size_t recvLen = recv(sock,
In my previous question .I have got the solution to check out which data
I am using Sphinx quite often. There is one index that calls a stored
Noob ADO.NET question: Can I do the following? Retrieve a DataTable somehow. Dispose it.
Referring to How to execute an Oracle stored procedure via a database link ,
I'm trying to implement a REST service using WCF which will take the parameters
As need to display Records in grid view in (ASP.NET) web site. and for

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.