Changeset 28 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH9h_HInit.asm
- Timestamp:
- Aug 1, 2010, 5:57:24 PM (15 years ago)
- google:author:
- aitotat
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH9h_HInit.asm
r3 r28 2 2 ; Project name : IDE BIOS 3 3 ; Created date : 9.12.2007 4 ; Last update : 26.4.20104 ; Last update : 1.8.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Int 13h function AH=9h, Initialize Drive Parameters. … … 78 78 .InitializeBlockMode: 79 79 call AH9h_InitializeBlockMode 80 ;mov dl, [di+DPT.bDrvNum] ; Restore DL80 ;mov dl, [di+DPT.bDrvNum] ; Restore DL 81 81 jc SHORT .ReturnNotSuccessfull 82 82 and BYTE [di+DPT.bReset], ~FLG_RESET_nSETBLOCK 83 84 ; Force PIO mode 0 85 ;call AH9h_ForcePioMode0 83 86 84 87 .ReturnNotSuccessfull: … … 149 152 .Return: 150 153 ret 154 155 156 ;-------------------------------------------------------------------- 157 ; AH9h_ForcePioMode0 158 ; Parameters: 159 ; DL: Drive number 160 ; DS:DI: Ptr to DPT 161 ; Returns: 162 ; AH: BIOS Error code 163 ; CF: Cleared if succesfull 164 ; Set if any error 165 ; Corrupts registers: 166 ; AX, BX 167 ;-------------------------------------------------------------------- 168 ;ALIGN JUMP_ALIGN 169 ;AH9h_ForcePioMode0: 170 ; mov bh, 08h ; Parameter to Sector Count Register (PIO Flow Control Transfer Mode 0) 171 ; mov ax, 2303h ; Feature: Set transfer mode based on value in Sector Count register 172 ; int 13h 173 ; jc SHORT .FailedToForcePIO0 174 ; ; Debug output here 175 ; ret 176 ;.FailedToForcePIO0: 177 ; ; Debug output here 178 ; ret
Note:
See TracChangeset
for help on using the changeset viewer.