Tutorial
2.7.1
Display the Code
1. From the View menu, select Program Memory.
2. On the Program Memory window, select the Symbolic tab, as shown in
FIGURE 2-16:
PROGRAM MEMORY WINDOW
3. Press <F5> to halt the processor and press <F6> to reset. The program memory
now shows a green arrow pointing to the line of code at address 0, the reset
location.
The instruction at this location is goto __reset . This code is added by the
linker to make the program branch to the start of the code in the Tut6014.s file.
The code uses the __reset label at the start of the executable code and
declares the label as global to have visibility outside the source file (see
Example 2-1).
EXAMPLE 2-1:
CODE START-UP
.global __reset
.text
__reset: mov
mov
mov
#__SP_init, W15
#__SPLIM_init, W0
W0, SPLIM
The linker also provides values for the __SP_init and __SPLIM_init
constants to initialize the stack pointer (W15), since the linker determines what
RAM is available for the stack.
? 2003 Microchip Technology Inc.
Advance Information
DS70099B-page 23
相关PDF资料
DM300016 BOARD DEMO DSPICDEM STARTER
DM300017 BOARD DEMO DSPICDEM STARTER
DM300020 BOARD DEV DSPICDEM MC1 MOTORCTRL
DM300021 MODULE PWR DSPICDEM MC1H HV 3PHS
DM300022 MODULE PWR DSPICDEM MC1L LV 3PHS
DM320002 BOARD EXPANSION PIC32 I/O
DM320003-2 KIT EVAL PIC32 USB II STARTER
DM320003 BOARD DEMO USB PIC32 OTG
相关代理商/技术参数
DM300015 功能描述:KIT DESIGN W/DM300014 RoHS:否 类别:编程器,开发系统 >> 过时/停产零件编号 系列:- 标准包装:1 系列:*
DM300016 功能描述:开发板和工具包 - PIC / DSPIC dsPICDEM Starter RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM300017 功能描述:开发板和工具包 - PIC / DSPIC dsPICDEM 28P Starter RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM300017 制造商:Microchip Technology Inc 功能描述:Microcontroller Development To
DM300018 功能描述:开发板和工具包 - PIC / DSPIC dsPICDEM 2 Demo Brd RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM300018 制造商:Microchip Technology Inc 功能描述:DEMO BOARD ((NW))
DM300019 功能描述:开发板和工具包 - PIC / DSPIC dsPICDEM 80L Starter Demo Board RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM300019 制造商:Microchip Technology Inc 功能描述:DEMO BOARD STARTER ((NW))