Changeset 189 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenuPrint.asm


Ignore:
Timestamp:
Nov 16, 2011, 6:29:32 AM (12 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Additional space optimizations, including making IdleProcessing an option in MENUEVENT. Note the fall-through from one file to another, but that there are assembler checks to ensure the proper linkage is maintained. First version of StringsCompress.pl, a perl script to make StringsCompressed.asm from Strings.asm.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenuPrint.asm

    r186 r189  
    55SECTION .text
    66
     7;;;
     8;;; Fall-through from BootMenuEvent.asm!
     9;;; BootMenuPrint_FloppyMenuitem must be the first routine in this file
     10;;; (checked at assembler time with the code after BootMenuPrint_FloppyMenuitem)
     11;;;
     12;--------------------------------------------------------------------
     13; BootMenuPrint_FloppyMenuitem
     14;   Parameters:
     15;       DL:     Untranslated Floppy Drive number
     16;   Returns:
     17;       Nothing
     18;   Corrupts registers:
     19;       AX, DX, SI, DI
     20;--------------------------------------------------------------------
     21ALIGN JUMP_ALIGN
     22BootMenuPrint_FloppyMenuitem:
     23    js      BootMenuPrint_FloppyMenuitemInformation
     24    call    PrintDriveNumberAfterTranslationFromDL
     25    push    bp
     26    mov     bp, sp
     27    mov     si, g_szFDLetter
     28    ePUSH_T ax, g_szFloppyDrv
     29    add     dl, 'A'
     30    push    dx                  ; Drive letter
     31    jmp     BootMenuPrint_FormatCSSIfromParamsInSSBP
     32
     33%if BootMenuPrint_FloppyMenuitem <> BootMenuEvent_FallThroughToFloppyMenuitem
     34%error "BootMenuPrint.asm must follow BootMenuEvent.asm, and BootMenuPrint_FloppyMenuitem must be the first routine in BootMenuPrint.asm"
     35%endif
     36       
    737;--------------------------------------------------------------------
    838; BootMenuPrint_ClearScreen
     
    81111
    82112;--------------------------------------------------------------------
    83 ; BootMenuPrint_FloppyMenuitem
    84 ;   Parameters:
    85 ;       DL:     Untranslated Floppy Drive number
    86 ;   Returns:
    87 ;       Nothing
    88 ;   Corrupts registers:
    89 ;       AX, DX, SI, DI
    90 ;--------------------------------------------------------------------
    91 ALIGN JUMP_ALIGN
    92 BootMenuPrint_FloppyMenuitem:
    93     call    PrintDriveNumberAfterTranslationFromDL
    94     push    bp
    95     mov     bp, sp
    96     mov     si, g_szFDLetter
    97     ePUSH_T ax, g_szFloppyDrv
    98     add     dl, 'A'
    99     push    dx                  ; Drive letter
    100     jmp     BootMenuPrint_FormatCSSIfromParamsInSSBP
    101 
    102 
    103 ;--------------------------------------------------------------------
    104113; BootMenuPrint_HardDiskMenuitem
    105114;   Parameters:
     
    113122ALIGN JUMP_ALIGN
    114123BootMenuPrint_HardDiskMenuitem:
     124    js      BootMenuPrint_HardDiskMenuitemInformation
    115125    call    PrintDriveNumberAfterTranslationFromDL
    116126    call    RamVars_IsDriveHandledByThisBIOS
Note: See TracChangeset for help on using the changeset viewer.