Update README.md
This commit is contained in:
@@ -88,9 +88,10 @@ arm-none-eabi-objcopy -O binary main.elf main.bin
|
|||||||
xxd -e main.bin
|
xxd -e main.bin
|
||||||
|
|
||||||
Sample output:
|
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:
|
Example:
|
||||||
|
|
||||||
CSUB myfunc
|
CSUB myfunc
|
||||||
00000000 20420047
|
00000000 00004770
|
||||||
END CSUB
|
END CSUB
|
||||||
|
|
||||||
myfunc()
|
myfunc()
|
||||||
|
|
||||||
PRINT "Returned value in R0 was 42"
|
PRINT "Returned successfully"
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user