]> git.sur5r.net Git - cc65/commitdiff
A small rearrangement of instructions in Atari's exec() to let the comments 312/head
authorChristian Groessler <chris@groessler.org>
Wed, 15 Jun 2016 22:47:13 +0000 (00:47 +0200)
committerChristian Groessler <chris@groessler.org>
Wed, 15 Jun 2016 22:47:13 +0000 (00:47 +0200)
make sense again.

libsrc/atari/exec.s

index 260a772b4208b2b83430cbd87067182bf7df1245..16062a29480f4f88febc548271ef6fedce52190c 100644 (file)
@@ -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