Changeset 542 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH9h_HInit.asm
- Timestamp:
- Apr 15, 2013, 4:03:33 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
r526 r542 99 99 ;;; SelectDrive 100 100 ; Try to select drive and wait until ready 101 call AccessDPT_GetDriveSelectByte ForOldInt13hToAL101 call AccessDPT_GetDriveSelectByteToAL 102 102 mov [bp+IDEPACK.bDrvAndHead], al 103 103 call Device_SelectDrive … … 130 130 131 131 ;;; InitializeDeviceParameters 132 ; Initialize CHS parameters if LBA is not used and133 ; user has specified P-CHS parameters134 test BYTE [di+DPT.bFlagsLow], FLGL_DPT_ASSISTED_LBA135 jnz SHORT .SkipInitializeDeviceParameters ; No need to initialize CHS parameters if LBA mode enabled136 call AccessDPT_GetPointerToDRVPARAMStoCSBX137 test BYTE [cs:bx+DRVPARAMS.wFlags], FLG_DRVPARAMS_USERCHS ; User specified P-CHS?138 jz SHORT .SkipInitializeDeviceParameters139 140 132 ; Initialize Logical Sectors per Track and Max Head number 141 mov ax, [ cs:bx+DRVPARAMS.wHeadsAndSectors]133 mov ax, [di+DPT.wPchsHeadsAndSectors] 142 134 dec ax ; Max Head number 143 xchg a l, ah ; Heads now in AH144 mov d x, ax ; Sectors per Track now in DL135 xchg ah, al 136 mov dl, al ; Sectors per track 145 137 mov al, COMMAND_INITIALIZE_DEVICE_PARAMETERS 146 138 mov bx, TIMEOUT_AND_STATUS_TO_WAIT(TIMEOUT_BSY, FLG_STATUS_BSY)
Note:
See TracChangeset
for help on using the changeset viewer.