mirror of
https://github.com/mytechnotalent/Embedded-Hacking.git
synced 2026-08-09 04:16:18 +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:**
|
||||
```
|
||||
main() calls print_hello()
|
||||
↓
|
||||
↓
|
||||
LR = address right after the call in main()
|
||||
↓
|
||||
↓
|
||||
print_hello() runs
|
||||
↓
|
||||
↓
|
||||
print_hello() finishes, looks at LR
|
||||
↓
|
||||
↓
|
||||
Jumps back to main() at the address stored in LR
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user