Allow "sp" as an alias for "c_sp" for backwards compatibility. Using it will

work but generates a linker warning. Added a test to check for this warning.
This commit is contained in:
Kugel Fuhr
2025-06-26 07:40:04 +02:00
parent 3a6766d0a0
commit 5db2aed129
4 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1 @@
ld65: Warning: runtime/sp-compat.s:10: Symbol 'sp' is deprecated - please use 'c_sp' instead

View File

@@ -0,0 +1,7 @@
.include "zeropage.inc"
.proc _func
ldy #0
lda (sp),y
rts
.endproc