Jumping to TSS
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:Jumping to TSS
Code: Select all
push byte 12
Code: Select all
push 12
http://courses.ece.uiuc.edu/ece291/arch ... f-pop.html
this should be all explained in the nasm docs as well ...
Re:Jumping to TSS
No -- the opposite. You can assume that anything on the stack is a dword.Perica Senjak wrote:So when retrieving arguments from the stack, i should take into account the padding??
If you have a function like:
Code: Select all
void fn(unsigned char a, unsigned short b, unsigned long c, unsigned long long d);
[tt]00 00 00 aa
00 00 bb bb
cc cc cc cc
dd dd dd dd
dd dd dd dd[/tt]
That is, a and b are padded with zeroes; c is unchanged; and d is split across two dwords. If a and b were signed then they would be padded with copies of their top bits; that is, 0xFF if they are negative, or 0x00 if they are zero or positive.
Re:Jumping to TSS
Is it me, or is the information (free information) on task switching (hardware or software) really this scarce?