Fix access to /fd2 (bugs #98, #103)

git-svn-id: svn://kolibrios.org@6814 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Ivan Baravy 2016-12-26 00:57:51 +00:00
parent 0665c95c1b
commit 6b6bcd23b5

View File

@ -368,7 +368,8 @@ RecalibrateFDD:
; Подать команду "Рекалибровка"
mov AL, 07h
call FDCDataOutput
mov AL, 00h
mov AL, [flp_number]
dec AL
call FDCDataOutput
; Ожидать завершения операции
call WaitFDCInterrupt
@ -484,6 +485,8 @@ ReadSector:
call FDCDataOutput
mov AL, [FDD_Head]
shl AL, 2
or AL, [flp_number]
dec AL
call FDCDataOutput
mov AL, [FDD_Track]
call FDCDataOutput
@ -586,6 +589,8 @@ WriteSector:
call FDCDataOutput
mov AL, [FDD_Head]
shl AL, 2
or AL, [flp_number]
dec AL
call FDCDataOutput
mov AL, [FDD_Track]
call FDCDataOutput