flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
vid
what is SS:SP value, when no stack is reserved in header (no "stack 100h")?
|
|||
![]() |
|
vid
oh... and what happens at "stack 0"? is ss:sp just pointer to some invalid area?
|
|||
![]() |
|
Filter
vid wrote: oh... and what happens at "stack 0"? is ss:sp just pointer to some invalid area? Don't EXE files require a stack of some sort? Maybe "stack 0" provides enough for it. |
|||
![]() |
|
Goplat
fasm does not allow "stack 0", but if you put a 0 in the SP field of the header the stack pointer does indeed start at 0. Of course, it would wrap around when you used it, and if not enough extra memory was allocated for a 64kB stack you would be overwriting some stuff in memory.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.