Update README.md

This commit is contained in:
Jason
2025-12-08 20:55:09 +11:00
committed by GitHub
parent 10205596b2
commit 7e14676a45
+5 -4
View File
@@ -88,9 +88,10 @@ arm-none-eabi-objcopy -O binary main.elf main.bin
xxd -e main.bin
Sample output:
00000000: 20420047
00000000: 00004770
20420047 represents `movs r0, #42` and `bx lr`.
- `00004770` = Thumb instruction `BX LR`.
- Execution returns immediately to the caller, with no register values modified.
---
@@ -102,12 +103,12 @@ Sample output:
Example:
CSUB myfunc
00000000 20420047
00000000 00004770
END CSUB
myfunc()
PRINT "Returned value in R0 was 42"
PRINT "Returned successfully"
---