CALLing Procedures
Posted: Sun Sep 08, 2002 6:38 pm
Hi,
If I have a system service, say a procedure to move the cursor on the screen and I want to call it from another segment, how can I determine how much data the processor has put on the stack. I know if I call the procedure from within the same segment (near call) it will push EIP in PMode, what does it push if I call the procedure from a different segment (far call)?
Should I have two procedures, one for the near call? and one for the far call?
If I have a system service, say a procedure to move the cursor on the screen and I want to call it from another segment, how can I determine how much data the processor has put on the stack. I know if I call the procedure from within the same segment (near call) it will push EIP in PMode, what does it push if I call the procedure from a different segment (far call)?
Should I have two procedures, one for the near call? and one for the far call?