clarify a corner-case comment
This commit is contained in:
parent
6a787ae229
commit
952b66fca6
|
@ -41,6 +41,7 @@ ver_02 = 1
|
||||||
;not compatible with allow_subdir, allow_saplings
|
;not compatible with allow_subdir, allow_saplings
|
||||||
detect_treof = 0 ;detect EOF during read of tree files
|
detect_treof = 0 ;detect EOF during read of tree files
|
||||||
allow_sparse = 0 ;enable support for reading sparse files
|
allow_sparse = 0 ;enable support for reading sparse files
|
||||||
|
;recommended if enable_write is enabled, to prevent writing to sparse blocks
|
||||||
bounds_check = 0 ;set to 1 to prevent access beyond the end of the file
|
bounds_check = 0 ;set to 1 to prevent access beyond the end of the file
|
||||||
;but limits file size to 64k-2 bytes.
|
;but limits file size to 64k-2 bytes.
|
||||||
no_interrupts= 0 ;set to 1 to disable interrupts across calls
|
no_interrupts= 0 ;set to 1 to disable interrupts across calls
|
||||||
|
@ -499,8 +500,6 @@ unrhddblockhi = *
|
||||||
lda #0
|
lda #0
|
||||||
hddreaddir1 jsr hddreaddirsel
|
hddreaddir1 jsr hddreaddirsel
|
||||||
|
|
||||||
;include volume directory header in count
|
|
||||||
|
|
||||||
hddreaddir
|
hddreaddir
|
||||||
hddfirstent lda #NAME_LENGTH
|
hddfirstent lda #NAME_LENGTH
|
||||||
sta bloklo
|
sta bloklo
|
||||||
|
@ -629,7 +628,7 @@ unrblockhi = unrelocdsk + (* - reloc)
|
||||||
|
|
||||||
;include volume directory header in count
|
;include volume directory header in count
|
||||||
|
|
||||||
readdir
|
readdir ;note that calling this location directly limits subdirectories to 14 entries!
|
||||||
!if might_exist = 1 {
|
!if might_exist = 1 {
|
||||||
ldx dirbuf + FILE_COUNT ;assuming only 256 files per subdirectory
|
ldx dirbuf + FILE_COUNT ;assuming only 256 files per subdirectory
|
||||||
inx
|
inx
|
||||||
|
@ -1912,7 +1911,7 @@ hddreaddir1 jsr hddreaddirsel
|
||||||
|
|
||||||
;include volume directory header in count
|
;include volume directory header in count
|
||||||
|
|
||||||
hddreaddir
|
hddreaddir ;note that calling this location directly limits subdirectories to 14 entries!
|
||||||
!if might_exist = 1 {
|
!if might_exist = 1 {
|
||||||
ldx hdddirbuf + FILE_COUNT ;assuming only 256 files per subdirectory
|
ldx hdddirbuf + FILE_COUNT ;assuming only 256 files per subdirectory
|
||||||
inx
|
inx
|
||||||
|
|
|
@ -13,10 +13,10 @@ lda #<file_to_read<br>
|
||||||
sta namlo<br>
|
sta namlo<br>
|
||||||
lda #>file_to_read<br>
|
lda #>file_to_read<br>
|
||||||
sta namhi<br>
|
sta namhi<br>
|
||||||
lda #6 ;bytes
|
lda #6 ;bytes<br>
|
||||||
sta sizelo
|
sta sizelo<br>
|
||||||
lda #0
|
lda #0<br>
|
||||||
sta sizehi
|
sta sizehi<br>
|
||||||
jsr opendir ;open and read file into memory at its load address<br>
|
jsr opendir ;open and read file into memory at its load address<br>
|
||||||
<br>
|
<br>
|
||||||
;write to an open file with address override<br>
|
;write to an open file with address override<br>
|
||||||
|
|
Loading…
Reference in New Issue