Changeset 252 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Boot/BootInfo.asm


Ignore:
Timestamp:
Feb 18, 2012, 2:12:54 PM (12 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Boot menu now shows only one capacity.
  • Added "strings" makefile target to compress strings.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Boot/BootInfo.asm

    r241 r252  
    6363    ret
    6464
    65        
     65
    6666;--------------------------------------------------------------------
    67 ; Finds BOOTNFO for drive and returns total sector count.
    68 ;
    6967; BootInfo_GetTotalSectorCount
    7068;   Parameters:
     
    7371;       BX:DX:AX:   48-bit sector count
    7472;   Corrupts registers:
    75 ;       Nothing
     73;       CX
    7674;--------------------------------------------------------------------
    7775ALIGN JUMP_ALIGN
    7876BootInfo_GetTotalSectorCount:
    79     push    ds
    80     call    BootInfo_ConvertDPTtoBX
    81     LOAD_BDA_SEGMENT_TO ds, ax
    82     mov     ax, [bx+BOOTNFO.twSectCnt]
    83     mov     dx, [bx+BOOTNFO.twSectCnt+2]
    84     mov     bx, [bx+BOOTNFO.twSectCnt+4]
    85     pop     ds
    86     ret
     77    test    BYTE [di+DPT.bFlagsLow], FLG_DRVNHEAD_LBA
     78    jnz     SHORT .ReturnFullCapacity
     79    jmp     AH15h_GetSectorCountToBXDXAX
     80.ReturnFullCapacity:
     81    jmp     AccessDPT_GetLbaSectorCountToBXDXAX
    8782
    8883
Note: See TracChangeset for help on using the changeset viewer.