add calling convention notes

This commit is contained in:
pantonshire committed 2025-07-26 15:43:02 +01:00
1 parent 88d7fb32d4
commit 868844f710
1 file changed
+10
+10
View File
@@ -0,0 +1,10 @@
# Calling convention
## boot0
I'm not sticking to any particular calling convention for boot0, since we have to golf to fit in
440 bytes. Whatever's most convenient.
## boot1
- Arguments: ax, cx, dx, stack
- Return value: ax, cf for booleans
- ax may be clobbered. All other registers are preserved
- Callee cleanup (i.e. the function pops stack arguments when returning)