Choose another way to fix the issue from r5804: When parsing the directory

name, add a file mask, so the result is "$0:*" or similar. When specified like
this, the drive accepts the r/o specifier ",R" so we don't have to complicate
the code in open().


git-svn-id: svn://svn.cc65.org/cc65/trunk@5805 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2012-08-06 18:45:26 +00:00
parent 55b56b2475
commit 942c0b6b2f
2 changed files with 13 additions and 7 deletions

View File

@@ -125,6 +125,15 @@ drivedone:
stx fnbuf+1
sta fnbuf+0
; Add the file mask
lda #':'
sta fnbuf+2
lda #'*'
sta fnbuf+3
lda #4
sta fnlen
; No need to check the name. Length is already 2
lda #0 ; ok flag