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
### Calling Convention
n.a. zr
preserved: sp, r8 - r12
scratch: flags, r1 - r7
arguments: r1 - r7 (r1 = 1st argument, r6 = 6th arg/stack args, r7 = 7th arg/stack res)
result: r1, r2 (r1 = low word, r2 = high word)
return address: r13
| class | registers |
| ----- | --------- |
| n.a. | zr |
| preserved | sp, r8 - r12 |
| scratch | flags, r1 - r7 |
| arguments | r1 - r5, r6 = stack args, r7 = stack res |
| result | r1 = low word, r2 = high word |
| return address | r13 |
### Stack
grows downwards from top of memory