rp2040

RP2040 Programming without SDK
Log | Files | Refs

commit 8a347c5c0da05100a62c21f461cd4cc4e0e343ab
parent dfe368ecd912b49a10165cb34c95491e5759a87c
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Mon, 18 Mar 2024 12:36:05 +0900

change automatically saved pc

Diffstat:
Mex3/main.c | 1-
Mex3/proc.s | 4++--
2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/ex3/main.c b/ex3/main.c @@ -63,7 +63,6 @@ main(void) { p1.r[15] = 0x20000101; // pc p1.next = NULL; - proc0(); for (;;) { wfi(); for (int i = 0; i < 17; i++) { diff --git a/ex3/proc.s b/ex3/proc.s @@ -99,8 +99,8 @@ isr_alarm: add r3, r3, #4 ldr r0, [r1, r2] str r0, [r1, r3] // ReturnAddress(ExceptionType): The next pc at interrupt. -// ldr r0, =0x20000101 // The entry point of proc1 -// str r0, [r1, r2] + ldr r0, =0x20000101 // The entry point of proc1 + str r0, [r1, r2] add r2, r2, #4 add r3, r3, #4