Function arguments were historically passed using fixed memory
locations. The C251 compiler can pass up to 9 function arguments in
registers. Other arguments are passed using the traditional fixed
memory areas. Since the parameter areas must be publicly known to any
calling module, they are publicly defined using the following symbol
names:
?function?BYTE
?function?BIT
For example, if func1 is a function that accepts both
bit arguments as well as arguments of other data types, the
bit arguments are passed starting at ?FUNC1?BIT, and
all other parameters are passed starting at ?FUNC1?BYTE.
Depending on the memory model, the ?function?BYTE symbol
refers to a DATA, EDATA or XDATA memory location. Refer to the
example routines in the Overlaying Segments topic for
function argument symbols examples.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.