Mail Archives: djgpp/1997/12/08/14:47:23
Christian Fleischer wrote:
>
> Hello!
>
> I am writing a 3d-engine under djgpp with nasm.
> Is it somehow possible to redirect the esp-register, so that it does not
> point to the stack but just to calculate something? The program also has
> some interrupt-routines itself (keyboard-handler etc.) but I think they
> could be turned off so long with cli and sti...
It is possible but it is as dangerous as going blind folded from
Manhattan to the Bronx. *Any* exception (hardware interrupt) or trap can
occur, and when this interrupt does not cause a task switch (and it is
not up to you to control that) it will use the stack, hence esp also. It
is a very bad idea to do so.
--
\ Vik /-_-_-_-_-_-_/
\___/ Heyndrickx /
\ /-_-_-_-_-_-_/
- Raw text -