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:
@@ -291,7 +291,7 @@ l2: sta fd_table+ft_dev,x ; set device
|
|||||||
sta fd_table+ft_flag,x
|
sta fd_table+ft_flag,x
|
||||||
lda tmp2
|
lda tmp2
|
||||||
jsr fdt_to_fdi ; get new index
|
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
|
;cmp #$ff ; no one available
|
||||||
;beq noslot ;@@@ cleanup needed
|
;beq noslot ;@@@ cleanup needed
|
||||||
sta tmp2 ; return index
|
sta tmp2 ; return index
|
||||||
@@ -336,9 +336,6 @@ srch2: txa
|
|||||||
; not found, open new iocb
|
; not found, open new iocb
|
||||||
jmp do_open
|
jmp do_open
|
||||||
|
|
||||||
; helper for branch out of range
|
|
||||||
noslot1:jmp noslot
|
|
||||||
|
|
||||||
; found device in table, check device number (e.g R0 - R3)
|
; found device in table, check device number (e.g R0 - R3)
|
||||||
fnddev: lda fd_table+ft_flag,x
|
fnddev: lda fd_table+ft_flag,x
|
||||||
and #7
|
and #7
|
||||||
|
|||||||
Reference in New Issue
Block a user