From ac126f390a8d7ac4d0ac2e1b0eec22b6664c49c1 Mon Sep 17 00:00:00 2001 From: Ivo van Poorten Date: Mon, 26 Aug 2024 21:34:20 +0200 Subject: [PATCH] bdos: for all file operations, besides setting the active drive also make sure it's logged in. --- src/bdos/filesystem.S | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/bdos/filesystem.S b/src/bdos/filesystem.S index c5a2cb37..4f806937 100644 --- a/src/bdos/filesystem.S +++ b/src/bdos/filesystem.S @@ -243,13 +243,12 @@ zproc convert_user_fcb zif_mi ldx current_drive ; override with current drive zendif - txa - sta active_drive ; set the active drive lda current_user sta (param), y ; update FCB - jmp select_active_drive + txa ; set the active drive + jmp internal_LOGINDRIVE ; and make sure it is logged in zendproc ; --- Close a file (flush the FCB to disk) ----------------------------------