Changeset 227 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH9h_HInit.asm
- Timestamp:
- Jan 29, 2012, 1:33:44 PM (13 years ago)
- google:author:
- aitotat@gmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH9h_HInit.asm
r173 r227 17 17 ; CF: 0 if succesfull, 1 if error 18 18 ;-------------------------------------------------------------------- 19 ALIGN JUMP_ALIGN20 19 AH9h_HandlerForInitializeDriveParameters: 21 20 %ifndef USE_186 … … 41 40 ; AL, BX, DX 42 41 ;-------------------------------------------------------------------- 43 ;ALIGN JUMP_ALIGN44 42 AH9h_InitializeDriveForUse: 45 43 push cx … … 87 85 ; AL, BX, CX, DX 88 86 ;-------------------------------------------------------------------- 89 ALIGN JUMP_ALIGN90 87 InitializeDeviceParameters: 91 88 ; No need to initialize CHS parameters if LBA mode enabled … … 94 91 95 92 ; Initialize Logical Sectors per Track and Max Head number 96 mov ah, [di+DPT.b Heads]93 mov ah, [di+DPT.bPchsHeads] 97 94 dec ah ; Max Head number 98 mov dl, [di+DPT.b Sectors]; Sectors per Track95 mov dl, [di+DPT.bPchsSectors] ; Sectors per Track 99 96 mov al, COMMAND_INITIALIZE_DEVICE_PARAMETERS 100 97 mov bx, TIMEOUT_AND_STATUS_TO_WAIT(TIMEOUT_BSY, FLG_STATUS_BSY) … … 113 110 ; AL, BX, CX, DX 114 111 ;-------------------------------------------------------------------- 115 ALIGN JUMP_ALIGN116 112 InitializeBlockMode: 117 113 test BYTE [di+DPT.bFlagsHigh], FLGH_DPT_BLOCK_MODE_SUPPORTED ; Clear CF
Note:
See TracChangeset
for help on using the changeset viewer.