Changeset 294 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH9h_HInit.asm
- Timestamp:
- Mar 4, 2012, 1:35:10 AM (13 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH9h_HInit.asm
r279 r294 15 15 ; Returns with INTPACK: 16 16 ; AH: Int 13h return status 17 ; CF: 0 if succes full, 1 if error17 ; CF: 0 if successful, 1 if error 18 18 ;-------------------------------------------------------------------- 19 19 AH9h_HandlerForInitializeDriveParameters: … … 36 36 ; Returns: 37 37 ; AH: Int 13h return status 38 ; CF: 0 if succes full, 1 if error38 ; CF: 0 if successful, 1 if error 39 39 ; Corrupts registers: 40 40 ; AL, BX, DX … … 45 45 46 46 %ifdef MODULE_SERIAL 47 ; 48 ; no need to do this for serial dev eices, and we use the DPT_RESET flag bits47 ; 48 ; no need to do this for serial devices, and we use the DPT_RESET flag bits 49 49 ; to store the drive type for serial floppy drives (MODULE_SERIAL_FLOPPY) 50 50 ; 51 51 xor ah, ah 52 52 test byte [di+DPT.bFlagsHigh], FLGH_DPT_SERIAL_DEVICE ; Clears CF 53 jnz .ReturnNotSuccessful l53 jnz .ReturnNotSuccessful 54 54 %endif 55 55 56 56 ; Try to select drive and wait until ready 57 57 or BYTE [di+DPT.bFlagsHigh], MASKH_DPT_RESET ; Everything uninitialized … … 59 59 mov [bp+IDEPACK.bDrvAndHead], al 60 60 call Device_SelectDrive 61 jc SHORT .ReturnNotSuccessful l61 jc SHORT .ReturnNotSuccessful 62 62 and BYTE [di+DPT.bFlagsHigh], ~FLGH_DPT_RESET_nDRDY ; Clear since success 63 63 … … 80 80 .InitializeBlockMode: 81 81 call InitializeBlockMode 82 jc SHORT .ReturnNotSuccessful l82 jc SHORT .ReturnNotSuccessful 83 83 and BYTE [di+DPT.bFlagsHigh], ~FLGH_DPT_RESET_nSETBLOCK ; Keeps CF clear 84 84 85 .ReturnNotSuccessful l:85 .ReturnNotSuccessful: 86 86 pop cx 87 87 pop si … … 96 96 ; Returns: 97 97 ; AH: BIOS Error code 98 ; CF: Cleared if succes full98 ; CF: Cleared if successful 99 99 ; Set if any error 100 100 ; Corrupts registers: … … 121 121 ; Returns: 122 122 ; AH: BIOS Error code 123 ; CF: Cleared if succes full123 ; CF: Cleared if successful 124 124 ; Set if any error 125 125 ; Corrupts registers: … … 146 146 ; Returns: 147 147 ; AH: BIOS Error code 148 ; CF: Cleared if succes full148 ; CF: Cleared if successful 149 149 ; Set if any error 150 150 ; Corrupts registers:
Note:
See TracChangeset
for help on using the changeset viewer.