Changeset 193 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/Tools


Ignore:
Timestamp:
Nov 17, 2011, 2:59:13 AM (13 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Space optimizations in AccessDPT.asm, transfer one routine to a macro (retaining some encapsulation), and transfer the unique part of another routine to the one place it was being called (which also makes what it was doing more transparent).

File:
1 edited

Legend:

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

    r191 r193  
    8686Address_OldInt13hAddressToIdeAddress:
    8787    call    Address_ExtractLCHSparametersFromOldInt13hAddress
    88     call    AccessDPT_GetAddressingModeToAXZF
     88       
     89    CustomDPT_GetUnshiftedAddressModeToALZF
    8990    jz      DoNotConvertLCHS    ; 0, ADDR_DPT_LCHS
    90     dec     ax
     91       
     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)
    9197    jz      ConvertLCHStoPCHS   ; 1, ADDR_DPT_PCHS
     98       
    9299;; Fall-through                 ; 2, ADDR_DPT_LBA28 and 3, ADDR_DPT_LBA48
    93100       
Note: See TracChangeset for help on using the changeset viewer.