From a9c69bb8c9fef39903b27971ed5c9c7c0f83e71b Mon Sep 17 00:00:00 2001 From: Christian Groessler Date: Thu, 16 Jun 2016 00:47:13 +0200 Subject: [PATCH] A small rearrangement of instructions in Atari's exec() to let the comments make sense again. --- libsrc/atari/exec.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/atari/exec.s b/libsrc/atari/exec.s index 260a772b4..16062a294 100644 --- a/libsrc/atari/exec.s +++ b/libsrc/atari/exec.s @@ -177,9 +177,9 @@ openok: lda #>buf ; program file appears to be available and good ; here's the point of no return - lda tmp4 ; get IOCB index ldx SP_save txs ; reset stack pointer to what it was at program entry + lda tmp4 ; get IOCB index pha ; and save it ('excexit' calls destructors and they might destroy tmp4) jsr excexit ; on atarixl this will enable the ROM again, making all high variables inaccessible pla -- 2.39.5