1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-27 15:29:46 +00:00

small space optimization -- 3 bytes reduced

git-svn-id: svn://svn.cc65.org/cc65/trunk@4470 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cpg 2009-11-18 22:16:13 +00:00
parent cce24a2c9a
commit 4ee7121ba2

View 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