This commit is contained in:
mrdudz
2025-06-27 17:26:11 +02:00
parent d909a2c285
commit 74a2262157
2 changed files with 16 additions and 0 deletions

View File

@@ -13,10 +13,18 @@
.globalzp tmp1, tmp2, tmp3, tmp4
.globalzp regbank
; FIXME: there must be a less ugly way to do this
.ifp4510
.else
.ifp45GS02
.else
; The following symbol is supplied for compatibility reasons only, it
; will get removed in future versions. Using it will cause a linker
; warning.
.globalzp sp
.endif
.endif
; The size of the register bank

View File

@@ -5,7 +5,15 @@
; 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