From: Oliver Schmidt Date: Sun, 13 Mar 2016 20:23:45 +0000 (+0100) Subject: Use AX paradigm. X-Git-Tag: V2.16~168 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=56a8c69b14496d6b8d32e3e7c55aaff6a2f0d9a9;p=cc65 Use AX paradigm. --- diff --git a/libsrc/atari/crt0.s b/libsrc/atari/crt0.s index 317fe5697..87d7d036f 100644 --- a/libsrc/atari/crt0.s +++ b/libsrc/atari/crt0.s @@ -65,9 +65,9 @@ start: ; Report the memory usage. lda APPMHI + ldx APPMHI+1 sta APPMHI_save ; remember old APPMHI value - lda APPMHI+1 - sta APPMHI_save+1 + stx APPMHI_save+1 sec lda MEMTOP @@ -129,9 +129,9 @@ _exit: jsr donelib ; Run module destructors ; Restore APPMHI. lda APPMHI_save + ldx APPMHI_save+1 sta APPMHI - lda APPMHI_save+1 - sta APPMHI+1 + stx APPMHI+1 .ifdef __ATARIXL__ @@ -142,9 +142,9 @@ _exit: jsr donelib ; Run module destructors lda RAMTOP_save sta RAMTOP lda MEMTOP_save + ldx MEMTOP_save+1 sta MEMTOP - lda MEMTOP_save+1 - sta MEMTOP+1 + stx MEMTOP+1 ; Issue a GRAPHICS 0 call (copied'n'pasted from the TGI drivers), in