From 56a8c69b14496d6b8d32e3e7c55aaff6a2f0d9a9 Mon Sep 17 00:00:00 2001 From: Oliver Schmidt Date: Sun, 13 Mar 2016 21:23:45 +0100 Subject: [PATCH] Use AX paradigm. --- libsrc/atari/crt0.s | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 -- 2.39.5