Technical information
SCI to SPI Peripheral Communication in V850ES Microcontrollers
st.w r0, [r13]
add 4, r13
cmp r12, r13
jl .L12
.L11:
mov #__sbss, r13 -- clear bss section
mov #__ebss, r12
cmp r12, r13
jnl .L14
.L15:
st.w r0, [r13]
add 4, r13
cmp r12, r13
jl .L15
.L14:
mov #___PROLOG_TABLE, r12 -- for prologue/epilogue runtime
ldsr r12, 20 -- set CTBP (CALLT base pointer)
-- IRAM clean up --
mov 0x3ffd800, r10 -- IRAM start address
mov 0x3fff000, r11 -- IRAM end address
_clear_loop: -- IRAM clean up
st.w r0, 0x0[r10]
add 4, r10
cmp r11,r10
jnz _clear_loop
ld.w $__argc, r6 -- set argc
movea $__argv, gp, r7 -- set argv
jarl _SystemInit, lp -- call SystemInit function
jarl _main,lp -- call main function
__exit:
halt -- end of program
4.2.3 System.inc
--/*
--
*****************************************************************************
--**
--** This device driver was created by Applilet for the V850ES/FE2,
V850ES/FF2,V850ES/FG2
--** and V850ES/FJ2 32-Bit Single-Chip Microcontrollers
--**
--** Copyright(C) NEC Electronics Corporation 2002-2004
--** All rights reserved by NEC Electronics Corporation
--**
--** This program should be used on your own responsibility.
--** NEC Electronics Corporation assumes no responsibility for any losses
incurred
--** by customers or third parties arising from the use of this file.
83