Changeset 194 in xtideuniversalbios for trunk/Assembly_Library/Src/Display


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.

Location:
trunk/Assembly_Library/Src/Display
Files:
4 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
Note: See TracChangeset for help on using the changeset viewer.