]> git.sur5r.net Git - cc65/commitdiff
Allow file names up to 16 chars
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 21 Dec 2002 00:06:41 +0000 (00:06 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 21 Dec 2002 00:06:41 +0000 (00:06 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1814 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/cbm/filename.s

index 572be21e4fa203f7301a8eacd46c5a9e8332b443..ea1dfdee3bc55ec952c9790dd7646e38921e649a 100644 (file)
@@ -91,7 +91,7 @@ namecheck:
 ; Check the maximum length, store the character
 
 nameok: ldx     fnlen
-        cpx     #16             ; Maximum length reached?
+        cpx     #18             ; Maximum length reached?
         bcs     invalidname
         lda     (ptr1),y        ; Reload char
         sta     fnbuf,x         ; Store into buffer
@@ -130,7 +130,7 @@ namedone:
 
 .proc  fncomplete
 
-       pha                     ; Save mode
+       pha                     ; Save mode
        ldx     fnlen
        lda     #','
        sta     fnbuf,x
@@ -167,3 +167,4 @@ fnchars:.byte   ".,-_+()"
 fncharcount = *-fnchars
 
 
+