]> git.sur5r.net Git - cc65/commitdiff
small space optimization -- 3 bytes reduced
authorcpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 18 Nov 2009 22:16:13 +0000 (22:16 +0000)
committercpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 18 Nov 2009 22:16:13 +0000 (22:16 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4470 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/atari/fdtable.s

index 56dbff01afbe68a61349c0425d5f04b0d1c1d01c..ecc7c451fa307d0b247eec43262750860dd803be 100644 (file)
@@ -291,7 +291,7 @@ l2: sta     fd_table+ft_dev,x       ; set device
        sta     fd_table+ft_flag,x
        lda     tmp2
        jsr     fdt_to_fdi              ; get new index
-       bcs     noslot                  ; no one available
+noslot1:bcs    noslot                  ; no one available (noslot1: helper label for branch out of range)
        ;cmp    #$ff                    ; no one available
        ;beq    noslot  ;@@@ cleanup needed
        sta     tmp2                    ; return index
@@ -336,9 +336,6 @@ srch2:      txa
 ; not found, open new iocb
        jmp     do_open
 
-; helper for branch out of range
-noslot1:jmp    noslot
-
 ; found device in table, check device number (e.g R0 - R3)
 fnddev:        lda     fd_table+ft_flag,x
        and     #7