English
Language : 

CC78K4 Datasheet, PDF (432/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 11 EXTENDED FUNCTIONS
Function Call Function from the Boot Area to the Flash Area #pragma ext_func
(2) Flash area side
#pragma ext_table 0x4000
#pragma ext_func f1 3
#pragma ext_func f2 4
void f1()
{
}
void f2()
{
}
• #pragma ext_func f1 3 means that the branch destination to function f1 is located in branch table address
4000H + 4*32 + 4*3.
• #pragma ext_func f2 4 means that the branch destination to function f2 is located in branch table address
4000H + 4*32 + 4*4.
• 4*32 bytes from the beginning of the branch table is exclusively for interrupt functions (including the startup
routine).
(Output object of compiler)
(1) Boot area side (without -ZF specification)
@@CODE
_func:
CSEG
call
call
ret
!0408CH
!04090H
(2) Flash area side (with -ZF specification)
@ECODE
_f1:
_f2:
CSEG
ret
ret
@EXT03
CSEG AT 0408CH
br
!!_f1
br
!!_f2
432
User’s Manual U15556EJ1V0UM