Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify ZAP_ALL to skip drives assigned to device-based drivers #147

Open
wants to merge 1 commit into
base: v2.1.3
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions source/kernel/bank2/val.mac
Original file line number Diff line number Diff line change
Expand Up @@ -3060,6 +3060,13 @@ zap_all_loop: ld a,b ;Get logical unit number
or e
jr z,no_zap_unit ;Skip if zero (no unit)
;
push hl ;Only zap if the unit is not controlled
ld de,UD_FLAGS ;by a device-based driver
add hl,de
bit UF_DBD,(hl)
pop hl
jr nz,no_zap_unit

ld hl,UD_TIME##
add hl,de ;HL -> UD_TIME byte
ld a,(hl) ;If UD_TIME is non-zero then
Expand Down
Loading