mirror of
https://github.com/mytechnotalent/Embedded-Hacking.git
synced 2026-08-09 12:26:11 +02:00
Update WEEK01.md
This commit is contained in:
+4
-4
@@ -101,13 +101,13 @@ When you call a function, the processor needs to remember where to come back to.
|
|||||||
**Example:**
|
**Example:**
|
||||||
```
|
```
|
||||||
main() calls print_hello()
|
main() calls print_hello()
|
||||||
↓
|
↓
|
||||||
LR = address right after the call in main()
|
LR = address right after the call in main()
|
||||||
↓
|
↓
|
||||||
print_hello() runs
|
print_hello() runs
|
||||||
↓
|
↓
|
||||||
print_hello() finishes, looks at LR
|
print_hello() finishes, looks at LR
|
||||||
↓
|
↓
|
||||||
Jumps back to main() at the address stored in LR
|
Jumps back to main() at the address stored in LR
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user