3.10 Intrinsic Functions

Intrinsic functions were validated by #pragma directives in the CA78K0, whereas intrinsic functions can always be used in the CC-RL. If there is an intrinsic function of the CC-RL that corresponds to an intrinsic function of the CA78K0, the CcnvCA78K0 deletes the relevant #pragma directive in the C source program and changes the code where the intrinsic function is called.

 

-

If there is no relevant #pragma directive, the intrinsic function is determined to be invalid and it will not be converted.

-

The CcnvCA78K0 deletes #pragma directives for the intrinsic functions that are not supported in the CC-RL and outputs a message. The code where the intrinsic functions are called will not be converted.

 

Table 3.4

Conversion of Intrinsic Functions

CA78K0

Intrinsic Function

After Conversion

Remarks

#pragma DI

DI

Deleted

__DI

 

#pragma EI

EI

Deleted

__EI

 

#pragma HALT

HALT

Deleted

__halt

 

#pragma STOP

STOP

Deleted

__stop

 

#pragma BRK

BRK

Deleted

__brk

 

#pragma NOP

NOP

Deleted

__nop

 

#pragma rot

rolb

rorb

rolw

rorw

Deleted

__rolb

__rorb

__rolw

__rorw

 

#pragma mul

mulu

Deleted

__mulu

 

#pragma div

divuw

moduw

Deleted

__divui

__remui

 

#pragma bcd

adbcdb, sbbcdb,

adbcdbe, sbbcdbe,

adbcdw, sbbcdw,

adbcdwe, sbbcdwe,

bcdtob, btobcde,

bcdtow, wtobcd,

btobcd

Deleted

Not any one of them is converted.

Not supported in the CC-RL.

#pragma opc

__OPC

Deleted

Not converted

Not supported in the CC-RL.

#pragma realregister

__geta, __seta, __getax,

__setax, __getcy, __setcy,

__set1cy, __clr1cy,

__not1cy, __inca, __deca,

__rora, __rorca, __rola,

__rolca, __shla, __shra,

__ashra, __nega, __coma,

__absa

Deleted

Not any one of them is converted.

Not supported in the CC-RL.

#pragma hromcall

__hromcall

__hromcalla

__setsp

Deleted

Not any one of them is converted.

Not supported in the CC-RL.

#pragma access

peekb, peekw,

pokeb, pokew

Deleted

Not any one of them is converted.

Not supported in the CC-RL.