Hi,
is there under any Windows system a problem with temporarily unaligned stack? By temporary I mean that between unaligning and realigning are not used any API calls at all. For instance let's consider an expansion of CWD instruction:



PUSHFW ; unalignign
MOV DX, AX
SAR DX, 15t
POPFW ; realigning
Posted on 2003-09-26 15:46:51 by MazeGen
Nah, that works fine. Windows doesn't do anything with the user stack during interrupts.
Posted on 2003-09-26 16:20:56 by Sephiroth3
Thanks, Sephiroth3 :)
Posted on 2003-09-29 14:01:12 by MazeGen
but hell _will_ break lose if you forget to realign the stack ;)
Posted on 2003-09-29 14:42:06 by f0dder
Will there be Demons?? or Wraiths?? Halloween is coming you know! ;P
Posted on 2003-09-29 19:51:28 by NaN