Add comments to the cputs() and cputc() sources about the former relying on

the latter not to clobber ptr1.
This commit is contained in:
Kugel Fuhr
2025-07-04 11:20:35 +02:00
parent 29f7ab3809
commit 947eecb65c
23 changed files with 50 additions and 1 deletions

View File

@@ -22,6 +22,10 @@ _cputsxy:
_cputs: sta ptr1 ; Save s
stx ptr1+1
; Important note: The implementation below relies on the _cputc() function not
; clobbering ptr1. This might not be the case when rewriting this function so
; beware!
L0:
.if .cap(CPU_HAS_ZPIND)
lda (ptr1) ; (5)