igotnoluck Posted November 13, 2007 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 Link to comment Share on other sites More sharing options...
Dyslexic Posted November 14, 2007 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. Link to comment Share on other sites More sharing options...
igotnoluck Posted November 14, 2007 Author Share Posted November 14, 2007 I've checked manually and you are correct, thanks :) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now