Skip to content

Commit

Permalink
Merge pull request #154 from ivop/bdos-fix
Browse files Browse the repository at this point in the history
Make sure drive is logged in when setting active drive
  • Loading branch information
davidgiven authored Aug 26, 2024
2 parents b8ec97f + ac126f3 commit 19f5ada
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 19f5ada

Please sign in to comment.