Page 1 of 1

Setting up the stack

Posted: Thu Jan 06, 2005 12:00 am
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]

Re: Setting up the stack

Posted: Thu Jan 06, 2005 12:00 am
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)