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

@@ -5,7 +5,7 @@
;
.export push0, pusha0, pushax
.importzp sp
.importzp c_sp
.macpack cpu
@@ -20,21 +20,21 @@ pusha0: ldx #0
.proc pushax
pha ; (3)
lda sp ; (6)
lda c_sp ; (6)
sec ; (8)
sbc #2 ; (10)
sta sp ; (13)
sta c_sp ; (13)
bcs @L1 ; (17)
dec sp+1 ; (+5)
dec c_sp+1 ; (+5)
@L1: ldy #1 ; (19)
txa ; (21)
sta (sp),y ; (27)
sta (c_sp),y ; (27)
pla ; (31)
dey ; (33)
.if (.cpu .bitand ::CPU_ISET_65SC02)
sta (sp) ; (37)
sta (c_sp) ; (37)
.else
sta (sp),y ; (38)
sta (c_sp),y ; (38)
.endif
rts ; (44/43)