flat assembler
Message board for the users of flat assembler.
Index
> Main > Stack in Pmode |
Author |
|
bubach 08 Apr 2005, 22:12
the stack grows down... and it can be set to whatever you want.
|
|||
08 Apr 2005, 22:12 |
|
MazeGen 09 Apr 2005, 07:05
You can also see limit 0xFFFF with B=1 under win9x or winme. It means (in theory) that the stack can grow down between maximal offset and limit (0xFFFFFFFF -> 0xFFFF)
|
|||
09 Apr 2005, 07:05 |
|
othername 09 Apr 2005, 08:59
then if b=0 it is BASE+LIMIT -----[stack gr. down]-------> BASE
if b=1 it is BASE+0xFFFFFFFF -----[stack gr. down] ----> 0xFFFFFFFF-LIMIT ? _________________ Sorry for my bad English |
|||
09 Apr 2005, 08:59 |
|
othername 09 Apr 2005, 09:01
oh, my mistake:
if b=1 it is BASE+0xFFFFFFFF -----[stack gr. down] -----> BASE+0xFFFFFFFF-LIMIT ? |
|||
09 Apr 2005, 09:01 |
|
MazeGen 09 Apr 2005, 18:47
Well, bit B (Big) has meaning only when ED=1. ED=1 (Expand Down) means you can access the area between maximal offset (0xFFFF if B=0, 0xFFFFFFFF if B=1) and limit, ED=0 means you can access area between 0x0 and limit.
So if ED=1 and B=1 then the stack grows down between BASE+0xFFFFFFFF -> BASE+limit. For instance, under my winme is it between BASE+0xFFFFFFFF -> 0xFFFF. The area between 0x0 and 0xFFFF is forbidden probably because of trapping NULL-pointers. |
|||
09 Apr 2005, 18:47 |
|
othername 09 Apr 2005, 19:38
_________________ Sorry for my bad English |
|||
09 Apr 2005, 19:38 |
|
MazeGen 09 Apr 2005, 20:44
I don't know russian. On the picture is only segment descriptor in general, you can't see access right there.
The access rights are 8 bits, starting with bit 8 in high dword of segment descriptor. The format of the access rights vary between data, code and system decriptor. The bit ED is bit 2 in data segment access rights field. You better read the Intel system programming manual. |
|||
09 Apr 2005, 20:44 |
|
othername 09 Apr 2005, 20:51
thank you anyway
_________________ Sorry for my bad English |
|||
09 Apr 2005, 20:51 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.