From 56588aa26af74680ef8c291dae636e7ee906ab66 Mon Sep 17 00:00:00 2001 From: Christian Groessler Date: Wed, 24 Jul 2013 10:24:47 +0200 Subject: [PATCH] fix cleanup of stack --- libsrc/atari/sysrename.s | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libsrc/atari/sysrename.s b/libsrc/atari/sysrename.s index d3e430ada..fef18bded 100644 --- a/libsrc/atari/sysrename.s +++ b/libsrc/atari/sysrename.s @@ -164,13 +164,14 @@ copend2:ldx tmp4 clc adc sspc sta sp - bcc L2 - inc sp+1 -L2: pla - tay + lda sp+1 + adc sspc+1 + sta sp+1 ; handle status + pla + tay bmi cioerr lda #0 rts -- 2.39.5