Skip to content

Commit

Permalink
bdos: for all file operations, besides setting the active drive also
Browse files Browse the repository at this point in the history
make sure it's logged in.
  • Loading branch information
ivop committed Aug 26, 2024
1 parent b8ec97f commit ac126f3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/bdos/filesystem.S
Original file line number Diff line number Diff line change
Expand Up @@ -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) ----------------------------------
Expand Down

0 comments on commit ac126f3

Please sign in to comment.