2025-02-08 21:28:20 +02:00
|
|
|
.syntax unified
|
|
|
|
.cpu cortex-m4
|
|
|
|
.thumb
|
|
|
|
|
2025-02-08 22:12:20 +02:00
|
|
|
.macro BKPT_WRITE addr_src
|
|
|
|
mov r0, 0x4
|
|
|
|
mov r1, \addr_src
|
|
|
|
bkpt 0xAB
|
|
|
|
.endm
|
|
|
|
|
2025-02-08 21:28:20 +02:00
|
|
|
.section .data
|
|
|
|
test_string: .asciz "Hello"
|
|
|
|
|
|
|
|
.section .text
|
|
|
|
|
|
|
|
lab1_v2:
|
2025-02-08 22:12:20 +02:00
|
|
|
push {lr}
|
2025-02-08 21:28:20 +02:00
|
|
|
|
2025-02-08 22:12:20 +02:00
|
|
|
ldr r1, =test_string
|
|
|
|
BKPT_WRITE r1
|
2025-02-08 21:28:20 +02:00
|
|
|
|
2025-02-08 22:12:20 +02:00
|
|
|
pop {pc}
|