]> git.sur5r.net Git - cc65/commitdiff
save a byte (idea by Uz, done by Daniel Serpell)
authorcpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 23 Nov 2009 21:17:56 +0000 (21:17 +0000)
committercpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 23 Nov 2009 21:17:56 +0000 (21:17 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4475 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/atari/crt0.s

index 0ce03a101daf4ed6d4d0b3dd3a8b16dd210ee0f2..0f0a5d77adcc26c954a76497178b33701d999160 100644 (file)
@@ -80,19 +80,19 @@ L1: lda     sp,x
 
        lda     LMARGN
        sta     old_lmargin
-       lda     #0
-       sta     LMARGN
+       ldy     #0
+       sty     LMARGN
 
 ; set keyb to upper/lowercase mode
 
        ldx     SHFLOK
        stx     old_shflok
-       sta     SHFLOK
+       sty     SHFLOK
 
 ; Initialize conio stuff
 
-       lda     #$FF
-       sta     CH
+       dey                             ; Set X to $FF
+       sty     CH
 
 ; Push arguments and call main