Skip to content

Commit

Permalink
CFD: fixed device mode, FDC WP disabled, fixed no verify.
Browse files Browse the repository at this point in the history
  • Loading branch information
z00m128 committed Jan 26, 2020
1 parent 0a63c26 commit fab0407
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions cf-driver/cf-driver.a80
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
; (c) 2020 z00m^SinDiKAT
; formatted for SjASMPlus

; Version: 1.1
; Version: 1.2

device zxspectrum48

Expand Down Expand Up @@ -840,7 +840,7 @@ make_vdt: push ix ; save partition entry position in MBR
ld (hl),a
ld a,(ix+#63)
bit 1,a ; is LBA supported?
jr z,dev_mode_chs
jr nz,dev_mode_chs

dev_mode_lba: ld e,%01000100 ; bit6=1 - LBA mode, bit3-bit1=010 - LBA
ld hl,device_mode
Expand Down Expand Up @@ -1049,6 +1049,12 @@ cfdriver: di
ld bc,dos_90h_end-dos_90h
ldir

ld hl,#003e ;disable FDC write protect detection
ld (#020e),hl
ld hl,#0000
ld (#019F),hl
ld (#0233),hl

ld a,patch_bank ;patch_bank page in
out (mem_port),a

Expand Down Expand Up @@ -1131,7 +1137,7 @@ dos_3eh:

noverify: ld c,a ;is verify needed?
ld a,(#03ef)
cp 5
cp 3 ;verify only for drives @1 & @2
ld a,c
ret nc
jp lssecs
Expand Down Expand Up @@ -1983,7 +1989,7 @@ cfdriver_end:

; Data
msg_title_lbl: db " CF D"
db "river v1.1 for "
db "river v1.2 for "
db "MB-03+ Ul"
db "timate"
db #00
Expand Down

0 comments on commit fab0407

Please sign in to comment.