From 092c0a26200d9034b431f8c99967d884d4ab71b1 Mon Sep 17 00:00:00 2001 From: cuz Date: Mon, 26 Mar 2001 14:41:45 +0000 Subject: [PATCH] Recode decsp8 git-svn-id: svn://svn.cc65.org/cc65/trunk@670 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/runtime/decsp8.s | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/libsrc/runtime/decsp8.s b/libsrc/runtime/decsp8.s index 54192fd51..0c0c8fee9 100644 --- a/libsrc/runtime/decsp8.s +++ b/libsrc/runtime/decsp8.s @@ -5,16 +5,23 @@ ; .export decsp8 - .import subysp + .importzp sp .proc decsp8 - ldy #8 - jmp subysp + lda sp + sec + sbc #8 + sta sp + bcc @L1 + rts + +@L1: dec sp+1 + rts .endproc - + -- 2.39.5