From 0011b3eacf24c26984ac1b930a18dcb04b4a4c3b Mon Sep 17 00:00:00 2001 From: FeralChild64 Date: Sat, 13 Mar 2021 22:25:23 +0100 Subject: [PATCH] added some missing floppy code --- src/dos_m65/filesystem_cbm/fs_cbm_read_file.s | 1 + src/dos_m65/unit_floppy/unit_fd_cmd_open.s | 17 +++++++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) 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: