CHAPTER 4 PROGRAM LIST
Application Note U17209EJ1V0AN
171
mov #V_MOTOR,r1
jmp [r1]
.section ".vect_AD0",text
Add -4,sp
st.w r1,[r3]
mov #V_AD0,r1
jmp [r1]
4.5.4 Startup routine setting
#=============================================================================
# DESCRIPTIONS:
# This assembly program is a sample of start-up module for ca850.
# If you modified this program, you must assemble this file, and
# locate a given directory.
#
# Unless -G is specified, sections are located as the following.
#
# | : |
# | : |
# tp -> -+-------------- + _ _start _ _tp_TEXT
# | start up |
# |-------------- |
# text section | |
# | user program |
# | |
# |-------------- |
# | library |
# -+-------------- +
# | |
# sdata section | |
# | |
# gp -> -+-------------- + _ _ssbss
# | |
# sbss section | |
# | |
# +-------------- + _ _stack _ _esbss _ _sbss
# | stack area |
# bss section | |
# | 0x400 bytes |
# sp-> -+-------------- + _ _stack + STACKSIZE _ _ebss
# | : |
# | : |
# | : |
# ep -> -+-------------- + _ _ep_DATA
# tidata section | |
# -+-------------- +