EasyManuals Logo

Renesas V850 Series User Manual

Renesas V850 Series
186 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #68 background imageLoading...
Page #68 background image
CHAPTER 4 PROGRAM LIST
Application Note U17209EJ1V0AN
71
#-----------------------------------------------------------------------------
# system stack
#-----------------------------------------------------------------------------
.set STACKSIZE, 0x400
.bss
.lcomm _ _stack, STACKSIZE, 4
#-----------------------------------------------------------------------------
# start up
# pointers: tp - text pointer
# gp - global pointer
# sp - stack pointer
# ep - element pointer
# exit status is set to r10
#-----------------------------------------------------------------------------
.text
.align 4
.globl _ _start
.globl _exit
.globl _ _exit
_ _start:
mov 0x12,r10
st.b r10,VSWC[r0] -- Set peripheral I/O wait
mov 0x07,r10 -- ×10
st.b r0,PHCMD[r0]
st.b r10,CKC[r0] -- PLL xx multiplication
nop
nop
nop
nop
nop
mov #_ _tp_TEXT, tp -- set tp register
mov #_ _gp_DATA, gp -- set gp register offset
add tp, gp -- set gp register
mov #_ _stack+STACKSIZE, sp -- set sp register
mov #_ _ep_DATA, ep -- set ep register
#
mov #_ _ssbss, r13 -- clear sbss section
mov #_ _esbss, r12
cmp r12, r13
jnl .L11
.L12:
st.w r0, [r13]
add 4, r13
cmp r12, r13
jl .L12

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas V850 Series and is the answer not in the manual?

Renesas V850 Series Specifications

General IconGeneral
BrandRenesas
ModelV850 Series
CategoryInverter
LanguageEnglish