]> git.sur5r.net Git - cc65/commitdiff
Saved two bytes.
authorol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 26 Jan 2011 22:11:23 +0000 (22:11 +0000)
committerol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 26 Jan 2011 22:11:23 +0000 (22:11 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4924 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/apple2/drives.s

index abeafb5808cff0b767cd42beea6209573b4211c8..b54dfbea9630a24bf2c755f99c3805a29a6d0652 100644 (file)
@@ -15,24 +15,22 @@ _drivecount:
 
         ; Check for ProDOS 8
         lda     __dos_type
-        bne     :+
-        rts
+        beq     :+
 
         ; Number of on-line devices (minus 1)
-:       ldy     DEVCNT
+        ldy     DEVCNT
         iny
         tya
-        rts
+:       rts
 
 _drivelist:
         ldx     #$00
 
         ; Check for ProDOS 8
         lda     __dos_type
-        bne     :+
-        rts
+        beq     :+
 
         ; Up to 14 units may be active
-:       lda     #<DEVLST
+        lda     #<DEVLST
         ldx     #>DEVLST
-        rts
+:       rts