Changeset 437 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers
- Timestamp:
- Aug 10, 2012, 5:35:08 PM (12 years ago)
- google:author:
- aitotat@gmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH9h_HInit.asm
r422 r437 125 125 STORE_ERROR_FLAG_TO_DPT FLG_INITERROR_FAILED_TO_INITIALIZE_CHS_PARAMETERS 126 126 .SkipInitializeDeviceParameters: 127 128 129 ;;; Enable 8-bit PIO Transfer Mode for Lo-tech XT-CF (CF and Microdrives only) 130 call AH9h_Enable8bitPioModeForXTCF 131 STORE_ERROR_FLAG_TO_DPT FLG_INITERROR_FAILED_TO_ENABLE_8BIT_PIO_MODE 127 132 128 133 … … 248 253 .NoErrorFlagToSet: 249 254 ret 255 256 257 ;-------------------------------------------------------------------- 258 ; AH9h_Enable8bitPioModeForXTCF 259 ; Parameters: 260 ; DS:DI: Ptr to DPT 261 ; Returns: 262 ; AH: Int 13h return status 263 ; CF: 0 if successful, 1 if error 264 ; Corrupts registers: 265 ; AL, BX, CX, DX 266 ;-------------------------------------------------------------------- 267 AH9h_Enable8bitPioModeForXTCF: 268 eMOVZX bx, BYTE [di+DPT.bIdevarsOffset] 269 cmp BYTE [cs:bx+IDEVARS.bDevice], DEVICE_8BIT_XTCF 270 je SHORT .Enable8bitMode 271 xor ah, ah ; Do nothing for this device 272 ret 273 .Enable8bitMode: 274 mov si, FEATURE_ENABLE_8BIT_PIO_TRANSFER_MODE 275 jmp AH23h_SetControllerFeatures
Note:
See TracChangeset
for help on using the changeset viewer.