AMX Target Guide Computer Accessories User Manual


 
AMX 68000 Target Guide
K
A
DAK
B-5
cjcfccsetup cjcfccsetup
Purpose Setup C Environment
Used by
n Task n ISP n Timer Procedure n Restart Procedure n Exit Procedure
Setup Prototype is in file
CJZZZIF.H.
#include "CJZZZ.H"
void CJ_CCPP cjcfccsetup(void);
Description Use cjcfccsetup to setup all low level processor registers to meet the
requirements of a particular C compiler. For example, the C compiler may
assume that some data variables can be accessed using a particular register
which always points to the data. However, when mixing languages, you
may find that when a C procedure is called from assembly language, the
register assumptions are not valid. A call to cjcfccsetup on entry to the
C procedure will setup the correct register content.
Interrupts o Disabled o Enabled o Restored
Returns The registers, if any, which are required by C are set to the values which
they contained when AMX was launched.
Restrictions Use cjcfccsetup with care. You may inadvertently cause a register to be
set which violates the register preservation rules of the other language.