Can't use stack below ESP.
From: Les Pawelczyk (les_at_pixelpointpos_dot_com)
Date: 01/12/04
- Next message: Patrick: "Re: FC challenge proposal"
- Previous message: Eric Grange: "Re: FC challenge proposal"
- Next in thread: Dennis: "Re: Can't use stack below ESP."
- Reply: Dennis: "Re: Can't use stack below ESP."
- Reply: Dennis: "Re: Can't use stack below ESP."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 12 Jan 2004 12:39:50 -0500
Without doing proper homework I have assumed that use of the stack below ESP
(i.e. mov [esp-4], eax) was ok. I remember defending this technique during
PosChar challenge days. Apparently this is a no-no. If the interrupt occurs
(software or hardware) and as a result of this interrupt the program flow
switches to another code segment (including task switch) that is of equal
privilege level then the current stack will be used to save some data. I
have found that out during debugging session. Debugging traps are software
interrupts and they were apparently messing with the stack. So I did some
detailed reading on INT instruction and enlightenment came to me.
Les.
- Next message: Patrick: "Re: FC challenge proposal"
- Previous message: Eric Grange: "Re: FC challenge proposal"
- Next in thread: Dennis: "Re: Can't use stack below ESP."
- Reply: Dennis: "Re: Can't use stack below ESP."
- Reply: Dennis: "Re: Can't use stack below ESP."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|