better handling for empty names, forgot to return
This commit is contained in:
parent
7d38d2dd17
commit
a9a44bb4c8
|
@ -470,6 +470,7 @@ vector dc.w $ffff
|
||||||
xce
|
xce
|
||||||
plp
|
plp
|
||||||
sec
|
sec
|
||||||
|
and #$ff
|
||||||
rts
|
rts
|
||||||
|
|
||||||
endp
|
endp
|
||||||
|
@ -669,6 +670,8 @@ name_check
|
||||||
|
|
||||||
lda buffer+HFSCatalogKey.nodeName,y
|
lda buffer+HFSCatalogKey.nodeName,y
|
||||||
sta cat_str_len
|
sta cat_str_len
|
||||||
|
beq cmp
|
||||||
|
|
||||||
@loop
|
@loop
|
||||||
lda buffer+HFSCatalogKey.nodeName+1,y
|
lda buffer+HFSCatalogKey.nodeName+1,y
|
||||||
sta cat_str,x
|
sta cat_str,x
|
||||||
|
@ -677,11 +680,11 @@ name_check
|
||||||
cpx cat_str_len
|
cpx cat_str_len
|
||||||
blt @loop
|
blt @loop
|
||||||
|
|
||||||
|
|
||||||
upper
|
upper
|
||||||
; now uppercase it
|
; now uppercase it
|
||||||
ldy #0
|
ldy #0
|
||||||
ldx cat_str_len
|
ldx cat_str_len
|
||||||
dex
|
|
||||||
@loop lda cat_str,y
|
@loop lda cat_str,y
|
||||||
cmp #'z'+1
|
cmp #'z'+1
|
||||||
bge @next
|
bge @next
|
||||||
|
@ -692,7 +695,7 @@ upper
|
||||||
|
|
||||||
@next iny
|
@next iny
|
||||||
dex
|
dex
|
||||||
bpl @loop
|
bne @loop
|
||||||
|
|
||||||
|
|
||||||
cmp
|
cmp
|
||||||
|
@ -728,6 +731,7 @@ gt long m
|
||||||
exit
|
exit
|
||||||
ply
|
ply
|
||||||
plx
|
plx
|
||||||
|
rts
|
||||||
|
|
||||||
match ; a match!
|
match ; a match!
|
||||||
; store the file type, aux type, eof, and extent pointers.
|
; store the file type, aux type, eof, and extent pointers.
|
||||||
|
|
Loading…
Reference in New Issue