1
0
mirror of https://github.com/cc65/cc65.git synced 2026-03-11 08:41:58 +00:00
Files
cc65/libsrc/runtime/sp-compat.s
2025-06-27 17:26:11 +02:00

20 lines
414 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".
;
; FIXME: there must be a less ugly way to do this
.ifp4510
.else
.ifp45GS02
.else
.include "zeropage.inc"
.export sp := c_sp
.assert 0, ldwarning, "Symbol 'sp' is deprecated - please use 'c_sp' instead"
.endif
.endif