Merge branch 'cc65:master' into master

This commit is contained in:
rumbledethumps
2025-06-29 20:16:27 -07:00
committed by GitHub
561 changed files with 20249 additions and 2888 deletions

View File

@@ -24,9 +24,9 @@ _init:
; Set cc65 argument stack pointer
lda #<(__RAM_START__ + __RAM_SIZE__)
sta sp
sta c_sp
lda #>(__RAM_START__ + __RAM_SIZE__)
sta sp+1
sta c_sp+1
; Initialize memory storage
jsr zerobss ; Clear BSS segment

View File

@@ -11,7 +11,7 @@
.export _ria_call_int, _ria_call_long
.export _ria_call_int_errno, _ria_call_long_errno
.importzp sp, sreg
.importzp c_sp, sreg
.import ___mappederrno, incsp1
.code

View File

@@ -5,7 +5,7 @@
; int __cdecl__ xreg(char device, char channel, unsigned char address, ...);
.export _xreg
.importzp sp
.importzp c_sp
.import addysp, _ria_call_int_errno
.include "rp6502.inc"
@@ -20,12 +20,12 @@
@copy: ; copy stack
dey
lda (sp),y
lda (c_sp),y
sta RIA_XSTACK
tya
bne @copy
; recover variadic size and move sp
; recover variadic size and move c_sp
txa
tay
jsr addysp