Jump to content
igotnoluck

Question in Assembly [solved]

Recommended Posts

Hi,

i have a small question in assembly, when i do this code:

section .bss:
ans: resd 2
section .text:
main:
push ans

 

the push command fills the stack with 32 or 64 bits ?

Edited by igotnoluck

Share this post


Link to post
Share on other sites

It's been a really long time since I've touched assembly, but I think it depends on your operating system's word size. In Linux, I believe a stack always pushes dwords, regardless of what you declared.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...