small CBDOS tweaks
This commit is contained in:
1 parent
18129b5003
commit
eec5a0680b
5 files changed
+19
-9
No files matched your search
@@ -28,14 +28,12 @@ dev_sd_cmd_OPEN_EOI:
|
||||
|
||||
dev_sd_cmd_OPEN_dir:
|
||||
|
||||
; XXX add support for filtering
|
||||
; Reset status to OK
|
||||
|
||||
; Initialize 1st directory phase - header
|
||||
lda #$00
|
||||
jsr dos_status_00
|
||||
|
||||
lda #$01
|
||||
sta SD_DIR_PHASE
|
||||
|
||||
; Provide pointer and length of the header
|
||||
; Provide pointer to the header
|
||||
|
||||
lda #$20
|
||||
sta SD_ACPTR_LEN+0
|
||||
@@ -47,6 +45,11 @@ dev_sd_cmd_OPEN_dir:
|
||||
lda #>dir_hdr_sd
|
||||
sta SD_ACPTR_PTR+1
|
||||
|
||||
; Set directory phase to 'file name'
|
||||
|
||||
lda #$01
|
||||
sta SD_DIR_PHASE
|
||||
|
||||
; End
|
||||
|
||||
jmp dos_EXIT
|
||||
@@ -18,6 +18,8 @@ dev_sd_cmd_READ:
|
||||
|
||||
dev_sd_cmd_READ_dir_blocksfree:
|
||||
|
||||
; Set pointer to '0 BLOCKS FREE.' line
|
||||
|
||||
lda #$13
|
||||
sta SD_ACPTR_LEN+0
|
||||
lda #$00
|
||||
@@ -28,5 +30,10 @@ dev_sd_cmd_READ_dir_blocksfree:
|
||||
lda #>dir_end
|
||||
sta SD_ACPTR_PTR+1
|
||||
|
||||
; Mark end of directory
|
||||
|
||||
lda #$FF
|
||||
sta SD_DIR_PHASE
|
||||
|
||||
clc
|
||||
rts
|
||||
Reference in new issue
Block a user