]> git.sur5r.net Git - cc65/commitdiff
No need to save the Y register in INSTALL.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 1 Feb 2010 07:19:47 +0000 (07:19 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 1 Feb 2010 07:19:47 +0000 (07:19 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4567 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/c64/c64-georam.s

index 30a2882a06eaec1a377758f996136130f7075afc..5b1f64b8c70b2f0344c5ec0b92204cf56d08076c 100644 (file)
@@ -62,8 +62,6 @@ pagecount:      .res    2               ; Number of available pages
 ;
 
 INSTALL:
-       tya
-       pha
                ldx     GR_WINDOW
         cpx     GR_WINDOW
         bne     @notpresent
@@ -118,8 +116,6 @@ INSTALL:
                bne     @setok
 
 @notpresent:
-       pla
-       tay
                lda     #<EM_ERR_NO_DEVICE
                ldx     #>EM_ERR_NO_DEVICE
        rts
@@ -128,8 +124,6 @@ INSTALL:
                lda     #0
                sta     pagecount
                stx     pagecount+1
-       pla
-       tay
                lda     #<EM_ERR_OK
                ldx     #>EM_ERR_OK
        rts