flat assembler
Message board for the users of flat assembler.

Index > High Level Languages > Calling and naming conventions

Author
Thread Post new topic Reply to topic
Juras



Joined: 18 Jun 2003
Posts: 23
Location: Belarus
Juras
Where can I read about CDECL, STDCALL, PASCAL argument passing standards? What registers are to be preserved? In what order push/pop regs? How to pass FPU values?

_________________
Best Regards, Juras aka Exhu (aka YBX)
Post 20 Aug 2005, 20:20
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1137
Location: Russian Federation
comrade
Code:
                             C    SYSCALL STDCALL  BASIC  FORTRAN  PASCAL
                         +-----------------------------------------------+
 Leading Underscore      ¦   X   ¦       ¦   X   ¦       ¦       ¦       ¦
                         +-------+-------+-------+-------+-------+-------¦
 Capitalize All          ¦       ¦       ¦       ¦   X   ¦   X   ¦   X   ¦
                         +-------+-------+-------+-------+-------+-------¦
 Arguments Left to Right ¦       ¦       ¦       ¦   X   ¦   X   ¦   X   ¦
                         +-------+-------+-------+-------+-------+-------¦
 Arguments Right to Left ¦   X   ¦   X   ¦   X   ¦       ¦       ¦       ¦
                         +-------+-------+-------+-------+-------+-------¦
 Caller Stack Cleanup    ¦   X   ¦       ¦   *   ¦       ¦       ¦       ¦
                         +-------+-------+-------+-------+-------+-------¦
 BP Saved                ¦       ¦       ¦       ¦   X   ¦   X   ¦   X   ¦
                         +-------+-------+-------+-------+-------+-------¦
 :VARARG Allowed         ¦   X   ¦   X   ¦   X   ¦       ¦       ¦       ¦
                         +-----------------------------------------------+
    
Post 21 Aug 2005, 01:12
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard
hmmm, so how VARARG can be handled in STDCALL function?
Post 21 Aug 2005, 05:40
View user's profile Send private message Visit poster's website Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1137
Location: Russian Federation
comrade
dunno, just pasted a file i had on my hard-drive
Post 21 Aug 2005, 17:21
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.