Changeset 194 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers


Ignore:
Timestamp:
Nov 17, 2011, 11:07:58 AM (12 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

ifdef'd out more unused code. Also added a tool for looking through the listing and the output of the precompiler to aid in finding dead code. Some changes in the files are to add annotations for the tool to avoid false positives.

File:
1 edited

Legend:

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

    r193 r194  
    8585ALIGN JUMP_ALIGN
    8686Address_OldInt13hAddressToIdeAddress:
    87     call    Address_ExtractLCHSparametersFromOldInt13hAddress
     87        call    Address_ExtractLCHSparametersFromOldInt13hAddress
     88           
     89        CustomDPT_GetUnshiftedAddressModeToALZF
    8890       
    89     CustomDPT_GetUnshiftedAddressModeToALZF
    90     jz      DoNotConvertLCHS    ; 0, ADDR_DPT_LCHS
     91;;; 0: ADDR_DPT_LCHS       
     92        jz      DoNotConvertLCHS   
    9193       
    92     ;;
    93     ;; Since we are only checking for zero, we can do our math in the high order bits,
    94     ;; in this case effectively subtracting 1 from the address mode.
    95     ;;
    96     sub     al,(1<<ADDRESSING_MODE_FIELD_POSITION)
    97     jz      ConvertLCHStoPCHS   ; 1, ADDR_DPT_PCHS
    98        
    99 ;; Fall-through                 ; 2, ADDR_DPT_LBA28 and 3, ADDR_DPT_LBA48
     94;;; 1: ADDR_DPT_PCHS
     95        ;
     96        ; Since we are only checking for zero, we can do our math in the high order bits,
     97        ; in this case effectively subtracting 1 from the address mode.
     98        ;
     99        sub     al,(1<<ADDRESSING_MODE_FIELD_POSITION)
     100        jz      ConvertLCHStoPCHS   
     101
     102;;; 2: ADDR_DPT_LBA28 and 3: ADDR_DPT_LBA48             
     103        ; Fall through to ConvertLCHStoLBARegisterValues 
    100104       
    101105;---------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.