From 43f59de55735b9990be89e44a77b5cb647fa8561 Mon Sep 17 00:00:00 2001 From: cuz Date: Tue, 13 May 2003 10:00:39 +0000 Subject: [PATCH] Redid the last change, because it was bug (A must be saved across the call) git-svn-id: svn://svn.cc65.org/cc65/trunk@2157 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/runtime/incsp3.s | 19 ++++++++----------- libsrc/runtime/incsp4.s | 19 ++++++++----------- libsrc/runtime/incsp5.s | 20 ++++++++------------ libsrc/runtime/incsp6.s | 20 ++++++++------------ libsrc/runtime/incsp7.s | 20 ++++++++------------ libsrc/runtime/incsp8.s | 17 +++++------------ 6 files changed, 45 insertions(+), 70 deletions(-) diff --git a/libsrc/runtime/incsp3.s b/libsrc/runtime/incsp3.s index 6c91bfceb..90dca0b96 100644 --- a/libsrc/runtime/incsp3.s +++ b/libsrc/runtime/incsp3.s @@ -1,23 +1,20 @@ ; -; Ullrich von Bassewitz, 2003-05-04 +; Ullrich von Bassewitz, 25.10.2000 ; ; CC65 runtime: Increment the stackpointer by 3 ; .export incsp3 - .importzp sp + .import addysp .proc incsp3 - lda sp - clc - adc #3 - sta sp - bcs @L1 - rts - -@L1: inc sp+1 - rts + ldy #3 + jmp addysp .endproc + + + + diff --git a/libsrc/runtime/incsp4.s b/libsrc/runtime/incsp4.s index 0d320fdf2..125c533e7 100644 --- a/libsrc/runtime/incsp4.s +++ b/libsrc/runtime/incsp4.s @@ -1,23 +1,20 @@ ; -; Ullrich von Bassewitz, 2003-05-04 +; Ullrich von Bassewitz, 25.10.2000 ; ; CC65 runtime: Increment the stackpointer by 4 ; .export incsp4 - .importzp sp + .import addysp .proc incsp4 - lda sp - clc - adc #4 - sta sp - bcs @L1 - rts - -@L1: inc sp+1 - rts + ldy #4 + jmp addysp .endproc + + + + diff --git a/libsrc/runtime/incsp5.s b/libsrc/runtime/incsp5.s index 963c0b3aa..df239cf21 100644 --- a/libsrc/runtime/incsp5.s +++ b/libsrc/runtime/incsp5.s @@ -1,24 +1,20 @@ ; -; Ullrich von Bassewitz, 2003-05-04 +; Ullrich von Bassewitz, 25.10.2000 ; ; CC65 runtime: Increment the stackpointer by 5 ; .export incsp5 - .importzp sp + .import addysp .proc incsp5 - lda sp - clc - adc #5 - sta sp - bcs @L1 - rts - -@L1: inc sp+1 - rts + ldy #5 + jmp addysp .endproc - + + + + diff --git a/libsrc/runtime/incsp6.s b/libsrc/runtime/incsp6.s index 5221138fc..a7ab932dd 100644 --- a/libsrc/runtime/incsp6.s +++ b/libsrc/runtime/incsp6.s @@ -1,24 +1,20 @@ ; -; Ullrich von Bassewitz, 2003-05-04 +; Ullrich von Bassewitz, 25.10.2000 ; ; CC65 runtime: Increment the stackpointer by 6 ; .export incsp6 - .importzp sp + .import addysp .proc incsp6 - lda sp - clc - adc #6 - sta sp - bcs @L1 - rts - -@L1: inc sp+1 - rts + ldy #6 + jmp addysp .endproc - + + + + diff --git a/libsrc/runtime/incsp7.s b/libsrc/runtime/incsp7.s index 48fc91a69..417700fe9 100644 --- a/libsrc/runtime/incsp7.s +++ b/libsrc/runtime/incsp7.s @@ -1,24 +1,20 @@ ; -; Ullrich von Bassewitz, 2003-05-04 +; Ullrich von Bassewitz, 25.10.2000 ; ; CC65 runtime: Increment the stackpointer by 7 ; .export incsp7 - .importzp sp + .import addysp .proc incsp7 - lda sp - clc - adc #7 - sta sp - bcs @L1 - rts - -@L1: inc sp+1 - rts + ldy #7 + jmp addysp .endproc - + + + + diff --git a/libsrc/runtime/incsp8.s b/libsrc/runtime/incsp8.s index 9baf5185c..3ec15202e 100644 --- a/libsrc/runtime/incsp8.s +++ b/libsrc/runtime/incsp8.s @@ -1,24 +1,17 @@ ; -; Ullrich von Bassewitz, 2003-05-04 +; Ullrich von Bassewitz, 25.10.2000 ; ; CC65 runtime: Increment the stackpointer by 8 ; .export incsp8 - .importzp sp + .import addysp .proc incsp8 - lda sp - clc - adc #8 - sta sp - bcs @L1 - rts - -@L1: inc sp+1 - rts + ldy #8 + jmp addysp .endproc - + -- 2.39.5