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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:13:45+00:00 2026-05-14T05:13:45+00:00

I’ve come to learn that you cannot push a byte directly onto the Intel

  • 0

I’ve come to learn that you cannot push a byte directly onto the Intel Pentium’s stack, can anyone explain this to me please?

The reason that I’ve been given is because the esp register is word-addressable (or, that is the assumption in our model) and it must be an “even address”. I would have assumed decrementing the value of some 32-bit binary number wouldn’t mess with the alignment of the register, but apparently I don’t understand enough.

I have tried some NASM tests and come up that if I declare a variable (bite db 123) and push it on to the stack, esp is decremented by 4 (indicating that it pushed 32-bits?). But, “push byte bite” (sorry for my choice of variable names) will result in a kind error:

test.asm:10: error: Unsupported non-32-bit ELF relocation

Any words of wisdom would be greatly appreciated during this troubled time. I am first year undergraduate so sorry for my naivety in any of this.

  • 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-14T05:13:45+00:00Added an answer on May 14, 2026 at 5:13 am

    Its based on how the stack was created:

    The address-size attribute of the
    stack segment determines the stack
    pointer size (16, 32 or 64 bits). The
    operand-size attribute of the current
    code segment determines the amount the
    stack pointer is decremented (2, 4 or
    8 bytes).

    In non-64-bit modes: if the
    address-size and operand-size
    attributes are 32, the 32-bit ESP
    register (stack pointer) is
    decremented by 4. If both attributes
    are 16, the 16-bit SP register (stack
    pointer) is decremented by 2.

    Source: http://www.intel.com/Assets/PDF/manual/253667.pdf

    pg. 4-320 Vol. 2B

    Edit

    Just wanted to point out also that an interesting read is the section on stacks in the manual, it will explain creating a stack segment further.

    http://www.intel.com/Assets/PDF/manual/253665.pdf

    Chapter 6.2

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

Sidebar

Ask A Question

Stats

  • Questions 375k
  • Answers 375k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Not really. This is normally done using javascript. there is… May 14, 2026 at 8:09 pm
  • Editorial Team
    Editorial Team added an answer I believe Michael is correct, the compiler uses Threads and… May 14, 2026 at 8:09 pm
  • Editorial Team
    Editorial Team added an answer The for attribute specifies which form element the label is… May 14, 2026 at 8:09 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.