Who could give me an simple example about calling gate?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
leetow2003
Member
Member
Posts: 70
Joined: Fri Nov 19, 2010 6:54 pm

Who could give me an simple example about calling gate?

Post by leetow2003 »

I am learning about calling gate,who could give me
an simple example?I use masm to compile it.
leetow2003
Member
Member
Posts: 70
Joined: Fri Nov 19, 2010 6:54 pm

Re: Who could give me an simple example about calling gate?

Post by leetow2003 »

I read some books about call gate,but I don't understand it,so I want to learn an simple
example and I maybe understand it.Who could help me?Thanks.
leetow2003
Member
Member
Posts: 70
Joined: Fri Nov 19, 2010 6:54 pm

Re: Who could give me an simple example about calling gate?

Post by leetow2003 »

when I call another sub-routine from priviledge 3 to priviledge 0,I want to know
how to use stack,and what does it push?when it return,what does it pop?
and could I call another sub-routine from priviledge 0 to priviledge 3?
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Who could give me an simple example about calling gate?

Post by Combuster »

please see the IA-32 manuals.
QFT. The intel manuals have all the information you need, and you really ought to learn how to read them.
And if you did read them, at least show us what you learnt, so that we can see where you are stuck rather than seeing a total lack of effort - Berkus was trying to get you through the learning process and you just dismiss him and come back with "Ok, who wants to just give me the answer?"
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply