You would need to pop 2 registers (DLL functions are called using far calls, so the return address is offset+segment), but yeah, you can do it like that - except you need to document it somewhere, because that makes a different calling convention. With EBP magic, after the function returns, the arguments are still on the stack, so the caller has to increase ESP appropriately. With your system, the arguments are popped off the stack, so if the caller tries to increase ESP, something will go bad.


LinkBack URL
About LinkBacks




Reply With Quote



But that's the point of increasing ESP after each call - to simulate popping the arguments from the stack, except you aren't saving the values from the stack anywhere, because it's unnecessary.

Video Master provides adequate speed for drawing stuff occasionally, but it can't quickly move things around. EGP on other hand, can't draw anything serious but it's good at quickly moving and scaling stuff which is exactly how it's used here - it re-arranges and scales the screens.
Bookmarks