From: ol.sc
Date: Wed, 26 Jan 2011 22:11:23 +0000 (+0000)
Subject: Saved two bytes.
X-Git-Tag: V2.13.3~536
X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=76c543a26ffca65c78cfbf82d0b71224ba5275d4;p=cc65
Saved two bytes.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4924 b7a2c559-68d2-44c3-8de9-860c34a00d81
---
diff --git a/libsrc/apple2/drives.s b/libsrc/apple2/drives.s
index abeafb580..b54dfbea9 100644
--- a/libsrc/apple2/drives.s
+++ b/libsrc/apple2/drives.s
@@ -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
- rts
+: rts