Setting up the stack

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Peter
Posts: 13
Joined: Wed Jan 05, 2005 12:00 am

Setting up the stack

Post by Peter »

Hi people,

I've a little question about the stack,

Code: Select all

mov ax,09BFFF
mov ss, ax
mov sp, 0x400
Why does 400 mean 1024 bytes?
[/code]
sz
Posts: 3
Joined: Tue Jan 04, 2005 12:00 am
Location: Switzerland
Contact:

Re: Setting up the stack

Post by sz »

0x400 means 400 in the hexadecimal system. You can easily convert it to the decimal system: 4*16^2 + 0*16^1 + 0*16^0 = 1024 (dec)
Last edited by sz on Thu Jan 06, 2005 12:00 am, edited 1 time in total.
Post Reply