If One of the function parameter need an short integer, does it mean I need to pass the address to the stack or the 32-bit value?
Quote from: Farabi on May 31, 2010, 01:13:13 AM
If One of the function parameter need an short integer, does it mean I need to pass the address to the stack or the 32-bit value?
Yes, you would pass it as 32-bit value to maintain stack alignment, same with 8-bit. The high order bits shouldn't matter, depends on the subroutine, I'd clear them if I where you. Use MOVZX EAX,xxx; PUSH EAX
See how INVOKE deals with subroutines with BYTE and WORD parameters defined in PROTO