Changeset 189 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Initialization


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.

Location:
trunk/XTIDE_Universal_BIOS/Src/Initialization
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Initialization/DetectDrives.asm

    r179 r189  
    2121    mov     bp, ROMVARS.ideVars0            ; CS:BP now points to first IDEVARS
    2222.DriveDetectLoop:
     23    mov     si,g_szDetect
    2324    call    .DetectDrives_WithIDEVARS       ; Detect Master and Slave
    2425    add     bp, BYTE IDEVARS_size           ; Point to next IDEVARS
     
    2930    jz      .done
    3031    mov     bp, ROMVARS.ideVarsSerialAuto
     32    mov     si,g_szSerial
    3133;;; fall-through       
    3234%else
     
    4244;       DS:         RAMVARS segment
    4345;       ES:         Zero (BDA segment)
     46;       SI:         Ptr to template string
    4447;   Returns:
    4548;       Nothing
     
    4952.DetectDrives_WithIDEVARS:
    5053    push    cx
     54       
     55    push    si
    5156    mov     ax, g_szMaster
    5257    mov     bh, MASK_DRVNHEAD_SET                               ; Select Master drive
    5358    call    StartDetectionWithDriveSelectByteInBHandStringInAX  ; Detect and create DPT + BOOTNFO
    54 
     59    pop     si
     60       
    5561    mov     ax, g_szSlave
    5662    mov     bh, MASK_DRVNHEAD_SET | FLG_DRVNHEAD_DRV
  • trunk/XTIDE_Universal_BIOS/Src/Initialization/DetectPrint.asm

    r120 r189  
    3030;       CS:AX:  Ptr to "Master" or "Slave" string
    3131;       CS:BP:  Ptr to IDEVARS
     32;       SI:     Ptr to template string
    3233;   Returns:
    3334;       Nothing
     
    3738DetectPrint_StartDetectWithMasterOrSlaveStringInAXandIdeVarsInCSBP:
    3839    push    bp
    39     mov     si, [cs:bp+IDEVARS.wPort]
     40    mov     di, [cs:bp+IDEVARS.wPort]
    4041    mov     bp, sp
    4142    push    ax                          ; Push "Master" or "Slave"
    42     push    si                          ; Push port number
    43     mov     si, g_szDetect
     43    push    di                          ; Push port number
    4444    jmp     BootMenuPrint_FormatCSSIfromParamsInSSBP
    4545
Note: See TracChangeset for help on using the changeset viewer.