Changeset 194 in xtideuniversalbios for trunk/Assembly_Library/Src/Display/DisplayContext.asm


Ignore:
Timestamp:
Nov 17, 2011, 11:07:58 AM (12 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.

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.