few 6502 and some 65SC02 optimizations

This commit is contained in:
IrgendwerA8
2017-03-12 23:21:43 +01:00
parent 0ec4534bd6
commit 0de44517ac
23 changed files with 272 additions and 78 deletions

View File

@@ -1,5 +1,6 @@
;
; Ullrich von Bassewitz, 29.12.1999
; Christian Krueger, 11-Mar-2017, added 65SC02 optimization
;
; CC65 runtime: long pop
;
@@ -8,6 +9,7 @@
.import incsp4
.importzp sp, sreg
.macpack cpu
popeax: ldy #3
lda (sp),y
@@ -18,8 +20,12 @@ popeax: ldy #3
dey
lda (sp),y
tax
.if (.cpu .bitand ::CPU_ISET_65SC02)
lda (sp)
.else
dey
lda (sp),y
.endif
jmp incsp4