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


Ignore:
Timestamp:
Apr 7, 2012, 3:28:40 PM (12 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Preparing to make boot menu an optional module.
File:
1 edited

Legend:

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

    r376 r379  
    3131    ORG 0                           ; Code start offset 0000h
    3232
    33 %define MENUEVENT_INLINE_OFFSETS    ; Only one menu required, save space and inline offsets
     33    ; We must define included libraries before including "AssemblyLibrary.inc".
     34%define EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS   ; Exclude unused library functions
     35%ifdef MODULE_BOOT_MENU
     36    %define MENUEVENT_INLINE_OFFSETS    ; Only one menu required, save space and inline offsets
     37    %define INCLUDE_MENU_LIBRARY
     38
     39%else   ; If no boot menu included
     40    %define INCLUDE_DISPLAY_LIBRARY
     41    %define INCLUDE_TIME_LIBRARY
     42%endif
     43
    3444
    3545    ; Included .inc files
     
    210220
    211221    ; Boot menu
     222%ifdef MODULE_BOOT_MENU
    212223    %include "BootMenu.asm"         ; For Boot Menu operations
    213224    %include "BootMenuEvent.asm"    ; For menu library event handling
     
    215226                                    ;       so that jump table entries in BootMenuEvent stay within 8-bits
    216227    %include "BootMenuPrint.asm"    ; For printing Boot Menu strings, also includes "BootMenuPrintCfg.asm"
     228%endif
     229
     230    ; Boot loader
    217231    %include "BootPrint.asm"        ; For printing boot information
     232    %include "Int19h.asm"           ; For Int 19h, Boot Loader
    218233    %include "FloppyDrive.asm"      ; Floppy Drive related functions
    219234    %include "BootSector.asm"       ; For loading boot sector
    220 
    221     ; Boot loader
    222     %include "Int19h.asm"           ; For Int 19h, Boot Loader
    223235
    224236    ; For all device types
Note: See TracChangeset for help on using the changeset viewer.