mirror of
https://github.com/mytechnotalent/Embedded-Hacking.git
synced 2026-04-02 01:20:17 +02:00
36 lines
1.1 KiB
ArmAsm
36 lines
1.1 KiB
ArmAsm
/**
|
|
* FILE: vector_table.s
|
|
*
|
|
* DESCRIPTION:
|
|
* RP2350 Vector Table.
|
|
*
|
|
* BRIEF:
|
|
* Defines the vector table for the RP2350 containing the initial
|
|
* stack pointer and reset handler entry point.
|
|
*
|
|
* AUTHOR: Kevin Thomas
|
|
* CREATION DATE: November 27, 2025
|
|
* UPDATE DATE: November 27, 2025
|
|
*/
|
|
|
|
.syntax unified // use unified assembly syntax
|
|
.cpu cortex-m33 // target Cortex-M33 core
|
|
.thumb // use Thumb instruction set
|
|
|
|
.include "constants.s"
|
|
|
|
/**
|
|
* Initialize the .vectors section. The .vectors section contains vector
|
|
* table and Reset_Handler.
|
|
*/
|
|
.section .vectors, "ax" // vector table section
|
|
.align 2 // align to 4-byte boundary
|
|
|
|
/**
|
|
* Vector table section.
|
|
*/
|
|
.global _vectors // export _vectors symbol
|
|
_vectors:
|
|
.word STACK_TOP // initial stack pointer
|
|
.word Reset_Handler + 1 // reset handler (Thumb bit set)
|