Files
cc65/libsrc/runtime/sp-compat.s
Kugel Fuhr 5db2aed129 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.
2025-06-26 07:40:04 +02:00

12 lines
317 B
ArmAsm

;
; Kugelfuhr, 2025-06-26
;
; Add "sp" as an alias for "c_sp" so we don't break old code but emit a
; linker warning if it is used. Added after renaming "sp" to "c_sp".
;
.include "zeropage.inc"
.export sp := c_sp
.assert 0, ldwarning, "Symbol 'sp' is deprecated - please use 'c_sp' instead"