update docs about call convention for multi-value results (first is in A or AY, then R15...R0)

added sprites+coroutines+defer part to benchmark program
This commit is contained in:
Irmen de Jong
2025-02-19 21:05:33 +01:00
parent bc550a4549
commit fb1e89d9ef
7 changed files with 20 additions and 14 deletions

View File

@@ -33,6 +33,7 @@
; - call killall() to kill all tasks.
; - IMPORTANT: if you add the same subroutine multiple times, IT CANNOT DEPEND ON ANY LOCAL VARIABLES OR R0-R15 TO KEEP STATE. NOT EVEN REPEAT LOOP COUNTERS.
; Those are all shared in the different tasks! You HAVE to use a mechanism around the userdata value (pointer?) to keep separate state elsewhere!
; - IMPORTANT: ``defer`` cannot be used inside a coroutine that is reused for multiple tasks!!!
coroutines {
%option ignore_unused