format calling convention

This commit is contained in:
2026-08-31 10:17:25 +02:00
parent 4bce47209a
commit daf4168129
+8 -6
View File
@@ -15,12 +15,14 @@ If you are intersted in contributing have a look at [[CONTRIBUTING.md]]
## ABI ## ABI
### Calling Convention ### Calling Convention
n.a. zr | class | registers |
preserved: sp, r8 - r12 | ----- | --------- |
scratch: flags, r1 - r7 | n.a. | zr |
arguments: r1 - r7 (r1 = 1st argument, r6 = 6th arg/stack args, r7 = 7th arg/stack res) | preserved | sp, r8 - r12 |
result: r1, r2 (r1 = low word, r2 = high word) | scratch | flags, r1 - r7 |
return address: r13 | arguments | r1 - r5, r6 = stack args, r7 = stack res |
| result | r1 = low word, r2 = high word |
| return address | r13 |
### Stack ### Stack
grows downwards from top of memory grows downwards from top of memory