Thread: pushing arguments in stdcall convention

  1. #1
    3735928559
    Join Date
    Mar 2008
    Location
    RTP
    Posts
    838

    pushing arguments in stdcall convention

    I saw a post here some time ago on how to push arguments into a __stdcall function in a variadic fashion using a small amount of asm. I have since tried multiple times to search for it to no avail. Can someone either provide a similar example or link?


    Thanks!

  2. #2
    'Allo, 'Allo, Allo
    Join Date
    Apr 2008
    Posts
    639
    From my MiniBasic interpreter. It pushes numArgs arguments of which lastArg is a pointer to the last one (since arguments are pushed from last to first), func is the function to call. If you're passing the correct number of arguments then there's no need to save the stack pointer as that code does.

  3. #3
    3735928559
    Join Date
    Mar 2008
    Location
    RTP
    Posts
    838
    word thx dude. looks about like what I was looking for.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. pushing of arguments into the stack?
    By sanddune008 in forum C Programming
    Replies: 41
    Last Post: 07-09-2009, 01:16 PM
  2. GradeInfo
    By kirksson in forum C Programming
    Replies: 23
    Last Post: 07-16-2008, 03:27 PM
  3. command line arguments
    By vurentjie in forum C Programming
    Replies: 3
    Last Post: 06-22-2008, 06:46 AM
  4. NULL arguments in a shell program
    By gregulator in forum C Programming
    Replies: 4
    Last Post: 04-15-2004, 10:48 AM
  5. registry, services & command line arguments.. ?
    By BrianK in forum Windows Programming
    Replies: 3
    Last Post: 03-04-2003, 02:11 PM