igotnoluck Posted November 13, 2007 Report Share Posted November 13, 2007 (edited) 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 November 14, 2007 by igotnoluck Quote Link to comment Share on other sites More sharing options...
Dyslexic Posted November 14, 2007 Report Share Posted November 14, 2007 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. Quote Link to comment Share on other sites More sharing options...
igotnoluck Posted November 14, 2007 Author Report Share Posted November 14, 2007 I've checked manually and you are correct, thanks :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.