File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ FDC_READ_BOOT_TRACK:
146146 ret ;[0296]
147147
148148FDC_WRITE_BOOT_TRACK:
149- ld b , 080h ;[0297]
149+ ld b , 080h ;[0297] Write command
150150 call FDC_SETUP_PARAMS ;[0299]
151151 ret ;[029c]
152152
@@ -157,12 +157,12 @@ FDC_SETUP_PARAMS:
157157 ld a , (CUR_DRIVE) ;[029d]
158158 ld c , a ;[02a0]
159159 ld de , 0000h ;[02a1]
160- ld hl , 0900h ;[02a4]
161- ld a , 001h ;[02a7]
160+ ld hl , 0900h ;[02a4] Destination buffer
161+ ld a , 001h ;[02a7] 256 bytes per sector (ssf)
162162 call ROM_FDC_RWFS ;[02a9]
163- ; Load entire side 1 track 1
163+ ; Load entire side 1 track 0
164164 ld a , 04h ;[02ac] Sector burst size = 4
165- add a , b ;[02ae]
165+ add a , b ;[02ae] Change only sector burst size without affecting command
166166 ld b , a ;[02af]
167167 ld a , (CUR_DRIVE) ;[02b0]
168168 ld c , a ;[02b3]
@@ -171,7 +171,8 @@ FDC_SETUP_PARAMS:
171171 ld e , 000h ;[02b8]
172172 set 7 , e ;[02ba] SBE=1
173173 ld hl , 00980h ;[02bc] Note: part of the loader's sector is overwritten. But loader is less than 128 bytes
174- ld a , 003h ;[02bf]
174+ ld a , 003h ;[02bf] 1024 bytes per sector (ssf)
175+ ; Load sectors 1-15 from side 0 track 0
175176 call ROM_FDC_RWFS ;[02c1]
176177 ld a , 00ah ;[02c4] sector burst size = 4 + 10 = 14
177178 add a , b ;[02c6]
You can’t perform that action at this time.
0 commit comments