From c2f5cb7cce178cd94b471c67fddc65c18b5969b9 Mon Sep 17 00:00:00 2001 From: cuz Date: Sat, 12 Apr 2003 20:50:58 +0000 Subject: [PATCH] Added some cycle counts git-svn-id: svn://svn.cc65.org/cc65/trunk@2043 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/runtime/popa.s | 10 +++++----- libsrc/runtime/pusha.s | 20 ++++++++++---------- libsrc/runtime/pushax.s | 24 ++++++++++++------------ 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/libsrc/runtime/popa.s b/libsrc/runtime/popa.s index 37bbc7b68..81e18089c 100644 --- a/libsrc/runtime/popa.s +++ b/libsrc/runtime/popa.s @@ -12,12 +12,12 @@ .ifpc02 lda (sp) .else - ldy #0 - lda (sp),y ; Read byte + ldy #0 ; (2) + lda (sp),y ; (7) Read byte .endif - inc sp - beq @L1 - rts + inc sp ; (12) + beq @L1 ; (14) + rts ; (20) @L1: inc sp+1 rts diff --git a/libsrc/runtime/pusha.s b/libsrc/runtime/pusha.s index dc5e54697..e3d2ba2ee 100644 --- a/libsrc/runtime/pusha.s +++ b/libsrc/runtime/pusha.s @@ -13,19 +13,19 @@ pusha0sp: ldy #$00 pushaysp: lda (sp),y -pusha: ldy sp - beq @L1 - dec sp +pusha: ldy sp ; (3) + beq @L1 ; (6) + dec sp ; (11) .ifpc02 sta (sp) .else - ldy #0 - sta (sp),y + ldy #0 ; (13) + sta (sp),y ; (19) .endif - rts + rts ; (25) -@L1: dec sp+1 - dec sp - sta (sp),y - rts +@L1: dec sp+1 ; (11) + dec sp ; (16) + sta (sp),y ; (22) + rts ; (28) diff --git a/libsrc/runtime/pushax.s b/libsrc/runtime/pushax.s index 22b71e059..d9efe7c0e 100644 --- a/libsrc/runtime/pushax.s +++ b/libsrc/runtime/pushax.s @@ -17,19 +17,19 @@ pusha0: ldx #0 .proc pushax - pha - lda sp - sec - sbc #2 + pha ; (3) + lda sp ; (6) + sec ; (8) + sbc #2 ; (10) sta sp ; (13) - bcs @L1 - dec sp+1 -@L1: ldy #1 - txa ; (20) - sta (sp),y - pla - dey + bcs @L1 ; (17) + dec sp+1 ; (+5) +@L1: ldy #1 ; (19) + txa ; (21) + sta (sp),y ; (27) + pla ; (31) + dey ; (33) sta (sp),y ; (38) - rts + rts ; (44) .endproc -- 2.39.5