Changeset 192 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Main.asm


Ignore:
Timestamp:
Nov 16, 2011, 11:35:45 AM (12 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Optimized away some long jumps, by rearranging routines within files, and file order within main.asm. Also added some 'relay' entry points for popular destinations, so that a short jump can go to an existing short jump and then on to the final destination, instead of using a long jump - clearly space over speed optimization. All 'relay's are limited to the UI code, and will not have an impact on IDE operational performance.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Main.asm

    r186 r192  
    170170    %include "DetectDrives.asm"     ; For detecting IDE drives
    171171    %include "DetectPrint.asm"      ; For printing drive detection strings
    172 
     172       
    173173    ; Boot menu
    174174    %include "BootMenu.asm"         ; For Boot Menu operations
    175175    %include "BootMenuEvent.asm"    ; For menu library event handling
    176     %include "BootMenuPrint.asm"    ; For printing Boot Menu strings (needs to come after BootMenuEvent.asm)
     176                                    ; NOTE: BootMenuPrint needs to come immediately after BootMenuEvent
     177    %include "BootMenuPrint.asm"    ; For printing Boot Menu strings
     178    %include "BootPrint.asm"        ; For printing boot information
     179    %include "BootMenuPrintCfg.asm" ; For printing hard disk configuration
    177180    %include "FloppyDrive.asm"      ; Floppy Drive related functions
    178181    %include "BootSector.asm"       ; For loading boot sector
    179     %include "BootPrint.asm"        ; For printing boot information
    180     %include "BootMenuPrintCfg.asm" ; For printing hard disk configuration
    181182
    182183    ; Boot loader
     
    187188
    188189    ; For all device types
     190    %include "Idepack.asm"
    189191    %include "Device.asm"
    190     %include "Idepack.asm"
    191192    %include "Timer.asm"            ; For timeout and delay
    192193
     
    194195    %include "IdeCommand.asm"
    195196    %include "IdeTransfer.asm"      ; Must be included after IdeCommand.asm
     197    %include "IdeWait.asm"
     198    %include "IdeError.asm"         ; Must be included after IdeWait.asm       
    196199    %include "IdeDPT.asm"
    197200    %include "IdeIO.asm"
    198201    %include "IdeIrq.asm"
    199     %include "IdeWait.asm"
    200     %include "IdeError.asm"         ; Must be included after IdeWait.asm
    201202
    202203%ifdef MODULE_SERIAL                ; Serial Port Device support
Note: See TracChangeset for help on using the changeset viewer.