stm32hello/core.S
2022-04-16 22:37:03 +03:00

25 lines
393 B
ArmAsm

.syntax unified
.cpu cortex-m0
.fpu softvfp
.thumb
.global vtable
.global reset_handler
.type vtable, %object
vtable:
.word _estack
.word reset_handler
.size vtable, .-vtable
.type reset_handler, %function
reset_handler:
LDR r0, =_estack
MOV sp, r0
LDR r7, =0xDEADBEEF
MOVS r0, #0
main_loop:
ADDS r0, r0, #1
B main_loop
.size reset_handler, .-reset_handler