Skip to content

Commit feaa833

Browse files
authored
Merge pull request #147 from Konamiman/fix/zap-drives-on-device-based-drivers
Modify ZAP_ALL to skip drives assigned to device-based drivers
2 parents 6a9c3b8 + d95c9cd commit feaa833

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

source/kernel/bank2/val.mac

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3060,6 +3060,13 @@ zap_all_loop: ld a,b ;Get logical unit number
30603060
or e
30613061
jr z,no_zap_unit ;Skip if zero (no unit)
30623062
;
3063+
push hl ;Only zap if the unit is not controlled
3064+
ld de,UD_FLAGS ;by a device-based driver
3065+
add hl,de
3066+
bit UF_DBD,(hl)
3067+
pop hl
3068+
jr nz,no_zap_unit
3069+
30633070
ld hl,UD_TIME##
30643071
add hl,de ;HL -> UD_TIME byte
30653072
ld a,(hl) ;If UD_TIME is non-zero then

0 commit comments

Comments
 (0)