cCall procName, [<argList>], [<underscores>]
The cCall macro pushes the arguments in the argList parameter onto the stack, saves registers (if any), and calls the function given by the procName parameter.
procName
Specifies the name of the function to be called.
argList
Specifies a list of the names of arguments to be passed to the function. This parameter is optional; it is not required if the Arg macro is used before the cCall macro.
underscores
Specifies whether an underscore should be added to the beginning of the procName parameter. This parameter is optional; if this argument is blank and the calling convention is the C calling convention, an underscore is added.
The arguments of an Arg macro are pushed onto the stack before any arguments in the argList parameter of a cCall macro.
Byte-type parameters are passed as words. There is no sign extension or zeroing of the high-order byte.
Immediate arguments are not supported.
The following examples demonstrate the usage of the cCall macro:
cCall there,<pExt,ax,bx,pResult>
Arg pExt
Arg ax
cCall there,<bx,pResult>