English
Language : 

CC78K4 Datasheet, PDF (279/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 10 LIBRARY FUNCTIONS
10.5 Batch Files for Update of Startup Routine and Library Functions
This compiler is provided with batch files for updating a part of the standard library functions and the startup
routine. The batch files in the BAT directory are shown in Table 10-3 below.
Caution The file d4025.78k in the BAT directory is used during batch file activation for updating the
library, not for development. When developing a system, it is necessary to have a device file
(sold separately).
Table 10-3. Batch Files for Updating Library Functions
Batch File
mkstup.bat
reprom.bat
repgetc.bat
repputc.bat
repputcs.bat
repselo.bat
repselon.bat
repvect.bat
Application
Updates the startup routine (cstart*.asm).
When changing the startup routine, perform assembly using this batch file.
Updates the firmware ROM termination routine (rom.asm).
When changing rom.asm, update the library using this batch file.
Updates the getchar function.
The default assumption sets P0 of the SFR to input port. When it is necessary to change this setting, change
the defined value of EQU of PORT in getchar.asm and update the library using this batch file.
Updates the putchar function.
The default assumption sets P0 of the SFR to output port. When it is necessary to change this setting, change
the defined value of EQU of PORT in putchar.asm and update the library using this batch file.
Updates the putchar function to SM78K4-supporting.
When it is necessary to check the output of the putchar function using the SM78K4, update the library using
this batch file.
Saves/restores the reserved area of the compiler (_@KREGxx) as part of the save/restore processing of the
setjmp/longjmp functions (the default assumption is to not save/restore).
Update the library using this batch file when the -QR option is specified.
Does not save/restore the reserved area of the compiler (_@KREGxx) as part of the save/restore processing
of the setjmp/longjmp functions (the default assumption is to not save/restore).
Update the library using this batch file when the -QR option is not specified.
Updates the address value setting processing of the branch table of the interrupt vector table allocated in the
flash area (vect*.asm).
The default assumption sets the top address of the flash area branch table to 4000H. When it is necessary to
change this setting, change the defined value of EQU of ITBLTOP in vect.inc and update the library using this
batch file.
User’s Manual U15556EJ1V0UM
279