Changeset 369 in xtideuniversalbios for trunk/Assembly_Library/Src/Util


Ignore:
Timestamp:
Mar 29, 2012, 9:29:28 AM (13 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Removed align directives for initalization code and added define for align in boot-time calls to the assembly library (defaulting to 1), resulting in a significant savings for the AT and 386 builds. Fixed a bug with switch command line handling in the serial server. Put in CR characters in licesnse.txt, so that it properly displays on Windows. In the configurator, added default values for user supplied CHS and LBA values, defaulting to values within range when those features are enabled. Updated the copyright message in the configurator as the literal word Copyright is important.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Assembly_Library/Src/Util/Size.asm

    r142 r369  
    3030;       BX, DH
    3131;--------------------------------------------------------------------
    32 ALIGN JUMP_ALIGN
     32ALIGN UTIL_SIZE_JUMP_ALIGN
    3333Size_GetSizeToAXAndCharToDLfromBXDXAXwithMagnitudeInCX:
    3434%ifndef USE_186     ; If 8086/8088
     
    3737    push    si
    3838
    39 ALIGN JUMP_ALIGN
     39ALIGN UTIL_SIZE_JUMP_ALIGN
    4040.MagnitudeConversionLoop:
    4141    ePUSH_T di, .MagnitudeConversionLoop; DI corrupted only on 8086/8088 build
     
    8080;       Nothing
    8181;--------------------------------------------------------------------
    82 ALIGN JUMP_ALIGN
     82ALIGN UTIL_SIZE_JUMP_ALIGN
    8383Size_DivideSizeInBXDXAXby1024andIncrementMagnitudeInCX:
    8484    push    cx
    8585    xor     si, si                  ; Zero remainder
    8686    mov     cl, 10                  ; Divide by 1024
    87 ALIGN JUMP_ALIGN
     87ALIGN UTIL_SIZE_JUMP_ALIGN
    8888.ShiftLoop:
    8989    call    Size_DivideBXDXAXbyTwo
     
    107107;       Nothing
    108108;--------------------------------------------------------------------
    109 ALIGN JUMP_ALIGN
     109ALIGN UTIL_SIZE_JUMP_ALIGN
    110110Size_ConvertSectorCountInBXDXAXtoKiB:
    111111Size_DivideBXDXAXbyTwo:
Note: See TracChangeset for help on using the changeset viewer.