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 mov AL, 07h
call FDCDataOutput call FDCDataOutput
mov AL, 00h mov AL, [flp_number]
dec AL
call FDCDataOutput call FDCDataOutput
; Ожидать завершения операции ; Ожидать завершения операции
call WaitFDCInterrupt call WaitFDCInterrupt
@ -484,6 +485,8 @@ ReadSector:
call FDCDataOutput call FDCDataOutput
mov AL, [FDD_Head] mov AL, [FDD_Head]
shl AL, 2 shl AL, 2
or AL, [flp_number]
dec AL
call FDCDataOutput call FDCDataOutput
mov AL, [FDD_Track] mov AL, [FDD_Track]
call FDCDataOutput call FDCDataOutput
@ -586,6 +589,8 @@ WriteSector:
call FDCDataOutput call FDCDataOutput
mov AL, [FDD_Head] mov AL, [FDD_Head]
shl AL, 2 shl AL, 2
or AL, [flp_number]
dec AL
call FDCDataOutput call FDCDataOutput
mov AL, [FDD_Track] mov AL, [FDD_Track]
call FDCDataOutput call FDCDataOutput