diff --git a/src/dos_m65/filesystem_cbm/fs_cbm_read_file.s b/src/dos_m65/filesystem_cbm/fs_cbm_read_file.s index 62199396..9f7e22bc 100644 --- a/src/dos_m65/filesystem_cbm/fs_cbm_read_file.s +++ b/src/dos_m65/filesystem_cbm/fs_cbm_read_file.s @@ -50,6 +50,7 @@ fs_cbm_read_file_open: ; Found the file - load it, start from fetching initial track/sector + inc $D020 diff --git a/src/dos_m65/unit_floppy/unit_fd_cmd_open.s b/src/dos_m65/unit_floppy/unit_fd_cmd_open.s index 0de83174..68bd9821 100644 --- a/src/dos_m65/unit_floppy/unit_fd_cmd_open.s +++ b/src/dos_m65/unit_floppy/unit_fd_cmd_open.s @@ -34,9 +34,22 @@ unit_fd_cmd_OPEN_EOI: unit_fd_cmd_OPEN_file: - ; XXX provide implementation + ; Copy the filter from command XXX this should be moved to common part and deduplicated with directory opening + + ldy #$00 +@lp1: + lda FD_CMDFN_BUF, y + cmp #$A0 + beq @lp1_end + sta PAR_FPATTERN, y + iny + cpy #$10 + bne @lp1 + +@lp1_end: + + jmp fs_cbm_read_file_open - jmp dos_EXIT_CLC unit_fd_cmd_OPEN_dir: