Changeset 194 in xtideuniversalbios for trunk/Assembly_Library/Src


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

ifdef'd out more unused code. Also added a tool for looking through the listing and the output of the precompiler to aid in finding dead code. Some changes in the files are to add annotations for the tool to avoid false positives.

Location:
trunk/Assembly_Library/Src
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/Assembly_Library/Src/Display/DisplayContext.asm

    r181 r194  
    100100    pop     ax                      ; Pop return address
    101101
     102%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
    102103    %assign i 0
    103104    %rep DISPLAY_CONTEXT_size / 2
     
    105106    %assign i i+2
    106107    %endrep
    107 
     108%endif
     109       
    108110    mov     ds, di                  ; Restore DS
    109111    jmp     ax
     
    124126    pop     ax                      ; Pop return address
    125127
     128%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS       
    126129    %assign i DISPLAY_CONTEXT_size-2
    127130    %rep DISPLAY_CONTEXT_size / 2
     
    129132    %assign i i-2
    130133    %endrep
    131 
     134%endif
     135       
    132136    push    ax                      ; Push return address
    133137    push    dx
     
    226230    mov     [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.fnCharOut], ax
    227231    ret
    228 
     232       
    229233
    230234;--------------------------------------------------------------------
     
    259263    ret
    260264
     265       
    261266;--------------------------------------------------------------------
    262267; DisplayContext_GetCharacterOutputParameterToDX
     
    286291;       Nothing
    287292;--------------------------------------------------------------------
     293%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
    288294ALIGN JUMP_ALIGN
    289295DisplayContext_GetCharacterOffsetToAXfromByteOffsetInAX:
     
    292298    sar     ax, 1       ; BYTE count to WORD count
    293299    ret
    294 
     300%endif
     301
     302       
    295303;--------------------------------------------------------------------
    296304; DisplayContext_GetByteOffsetToAXfromCharacterOffsetInAX
     
    303311;       Nothing
    304312;--------------------------------------------------------------------
     313%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS       
    305314ALIGN JUMP_ALIGN
    306315DisplayContext_GetByteOffsetToAXfromCharacterOffsetInAX:
     
    311320ReturnOffsetInAX:
    312321    ret
     322%endif
  • trunk/Assembly_Library/Src/Display/DisplayFormatCompressed.asm

    r186 r194  
    7070%define DisplayFormatCompressed_Format_s DisplayFormat_ParseCharacters_FromAX
    7171
    72 DisplayFormatCompressed_Format_A:   
     72DisplayFormatCompressed_Format_A:
    7373    mov     [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.bAttribute], al
    7474DisplayFormatCompressed_ret:            ; jump target for other routines who need a "ret"
     
    8686    test    ax,ax                       ; if parameter equals zero, emit dash string instead
    8787    jz      DisplayFormat_ParseCharacters
    88 ;;; fall through
     88    ; fall through
    8989       
    9090DisplayFormatCompressed_Format_2_u:
    9191    mov     bh,2                        ; only two characters (instead of the default 5)
    92 ;;; fall through
     92    ; fall through
    9393       
    9494DisplayFormatCompressed_Format_u:
     
    150150;--------------------------------------------------------------------       
    151151
    152 DisplayFormatCompressed_BaseFormatOffset:   
    153        
    154 DisplayFormat_ParseCharacters_FromAX:   
     152DisplayFormatCompressed_BaseFormatOffset:
     153       
     154DisplayFormat_ParseCharacters_FromAX:
    155155    mov     si,ax
    156 ;;; Fall-through
     156    ; fall through to DisplayFormat_ParseCharacters
    157157
    158158ALIGN JUMP_ALIGN       
  • trunk/Assembly_Library/Src/Display/DisplayPage.asm

    r101 r194  
    1515;       AX, DX
    1616;--------------------------------------------------------------------
     17%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
    1718ALIGN JUMP_ALIGN
    1819DisplayPage_SetFromAL:
     
    2122    mov     [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.fpCursorPosition], ax
    2223    ret
     24%endif
    2325
    2426
  • trunk/Assembly_Library/Src/Display/DisplayPrint.asm

    r186 r194  
    151151;       AX, DX
    152152;--------------------------------------------------------------------
     153%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
     154       
    153155ALIGN JUMP_ALIGN
    154156DisplayPrint_CharacterBufferFromBXSIwithLengthInCX:
     
    170172.NothingToPrintSinceZeroLength:
    171173    ret
     174%endif
    172175
    173176
     
    328331    inc     bp                  ; we didn't need a parameter after all, readjust BP
    329332    inc     bp
    330 ;;; fall-through
     333    ; fall through to DisplayPrint_Newline
    331334%endif
    332335
  • trunk/Assembly_Library/Src/Menu/MenuBorders.asm

    r182 r194  
    6060;       AX, BX, CX, DX, SI, DI
    6161;--------------------------------------------------------------------
     62%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
    6263ALIGN JUMP_ALIGN
    6364MenuBorders_RefreshItemBorders:
     
    6869    call    MenuBorders_GetNumberOfMiddleCharactersToDX
    6970    jmp     SHORT RefreshItemBorders
    70 
    71 
     71%endif
     72
     73       
    7274;--------------------------------------------------------------------
    7375; MenuBorders_AdjustDisplayContextForDrawingBorders
  • trunk/Assembly_Library/Src/Menu/MenuText.asm

    r133 r194  
    1515;       AX, BX, CX, DX, SI, DI
    1616;--------------------------------------------------------------------
     17%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
    1718ALIGN JUMP_ALIGN
    1819MenuText_ClearTitleArea:
     
    2021    call    PrepareToDrawTitleArea
    2122    mov     cl, [bp+MENUINIT.bTitleLines]
    22     jmp     SHORT ClearCLlinesOfText
    23 
     23    jmp     SHORT MenuText_ClearInformationArea.ClearCLlinesOfText
     24%endif
     25       
    2426ALIGN JUMP_ALIGN
    2527MenuText_ClearInformationArea:
     
    2729    call    MenuText_PrepareToDrawInformationArea
    2830    mov     cl, [bp+MENUINIT.bInfoLines]
    29 ClearCLlinesOfText:
     31.ClearCLlinesOfText:
    3032    mov     al, [bp+MENUINIT.bWidth]
    3133    sub     al, MENU_HORIZONTAL_BORDER_LINES+(MENU_TEXT_COLUMN_OFFSET/2)
  • trunk/Assembly_Library/Src/String/Char.asm

    r181 r194  
    8888;       Nothing
    8989;--------------------------------------------------------------------
     90%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
    9091ALIGN JUMP_ALIGN
    9192Char_IsDecimalDigitInAL:
    9293    IS_BETWEEN_IMMEDIATES al, '0', '9'
    9394    ret
    94 
     95%endif
    9596
    9697;--------------------------------------------------------------------
  • trunk/Assembly_Library/Src/Util/Memory.asm

    r131 r194  
    116116;       AX
    117117;--------------------------------------------------------------------
     118%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
    118119ALIGN JUMP_ALIGN
    119120Memory_ReserveCXbytesFromStackToDSSI:
     
    124125    mov     si, sp
    125126    jmp     ax
     127%endif
Note: See TracChangeset for help on using the changeset viewer.