Ignore:
Timestamp:
Jan 29, 2012, 1:33:44 PM (12 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • EBIOS functions now work in lite mode.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH9h_HInit.asm

    r173 r227  
    1717;       CF:     0 if succesfull, 1 if error
    1818;--------------------------------------------------------------------
    19 ALIGN JUMP_ALIGN
    2019AH9h_HandlerForInitializeDriveParameters:
    2120%ifndef USE_186
     
    4140;       AL, BX, DX
    4241;--------------------------------------------------------------------
    43 ;ALIGN JUMP_ALIGN
    4442AH9h_InitializeDriveForUse:
    4543    push    cx
     
    8785;       AL, BX, CX, DX
    8886;--------------------------------------------------------------------
    89 ALIGN JUMP_ALIGN
    9087InitializeDeviceParameters:
    9188    ; No need to initialize CHS parameters if LBA mode enabled
     
    9491
    9592    ; Initialize Logical Sectors per Track and Max Head number
    96     mov     ah, [di+DPT.bHeads]
     93    mov     ah, [di+DPT.bPchsHeads]
    9794    dec     ah                          ; Max Head number
    98     mov     dl, [di+DPT.bSectors]       ; Sectors per Track
     95    mov     dl, [di+DPT.bPchsSectors]   ; Sectors per Track
    9996    mov     al, COMMAND_INITIALIZE_DEVICE_PARAMETERS
    10097    mov     bx, TIMEOUT_AND_STATUS_TO_WAIT(TIMEOUT_BSY, FLG_STATUS_BSY)
     
    113110;       AL, BX, CX, DX
    114111;--------------------------------------------------------------------
    115 ALIGN JUMP_ALIGN
    116112InitializeBlockMode:
    117113    test    BYTE [di+DPT.bFlagsHigh], FLGH_DPT_BLOCK_MODE_SUPPORTED ; Clear CF
Note: See TracChangeset for help on using the changeset viewer.