This commit is contained in:
mrdudz
2025-06-23 17:09:06 +02:00
parent 4863a3e29b
commit 5fc15a7a60
204 changed files with 915 additions and 912 deletions

View File

@@ -6,7 +6,7 @@
;
.export swapstk
.importzp sp, ptr4
.importzp c_sp, ptr4
.macpack cpu
@@ -14,22 +14,22 @@ swapstk:
sta ptr4
stx ptr4+1
ldy #1 ; index
lda (sp),y
lda (c_sp),y
tax
lda ptr4+1
sta (sp),y
sta (c_sp),y
.if (.cpu .bitand ::CPU_ISET_65SC02)
lda (sp)
lda (c_sp)
tay
lda ptr4
sta (sp)
sta (c_sp)
tya
.else
dey
lda (sp),y
lda (c_sp),y
pha
lda ptr4
sta (sp),y
sta (c_sp),y
pla
.endif
rts ; whew!