Changeset 223 in xtideuniversalbios for trunk/Assembly_Library/Src/Display/DisplayPrint.asm


Ignore:
Timestamp:
Jan 25, 2012, 8:20:06 PM (12 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:

Changes:

  • Fixed what appears to be a mistake in EBIOS.inc
  • Added a 'release' option to the makefile of the Serial Server (invokes UPX)
  • Some very minor optimizations
  • Removed the eSEG macro and did some other cleanups (fixed typos etc)
File:
1 edited

Legend:

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

    r194 r223  
    55SECTION .text
    66
    7                
     7
    88;--------------------------------------------------------------------
    99; Supports following formatting types:
     
    104104;       AX, DX
    105105;--------------------------------------------------------------------
    106        
     106
    107107%ifndef MODULE_STRINGS_COMPRESSED
    108        
     108
    109109ALIGN JUMP_ALIGN
    110110DisplayPrint_WordFromAXWithBaseInBX:
     
    126126.PrintNextDigit:
    127127    pop     ax                  ; Pop digit
    128     eSEG    cs
    129     xlatb
     128    cs xlatb
    130129    call    DisplayPrint_CharacterFromAL
    131130    loop    .PrintNextDigit
     
    152151;--------------------------------------------------------------------
    153152%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
    154        
    155153ALIGN JUMP_ALIGN
    156154DisplayPrint_CharacterBufferFromBXSIwithLengthInCX:
     
    167165    loop    .PrintNextCharacter
    168166
    169     ;mov        ds, cx  ; Restore DS to BDA. Not needed unless DisplayPrint_CharacterFromAL changes DS.
    170167    pop     cx
    171168    pop     si
     
    173170    ret
    174171%endif
    175 
    176 
    177172
    178173
     
    278273    pop     cx
    279274.NothingToRepeat:
    280 
    281     ret
     275    ret
     276
    282277
    283278;--------------------------------------------------------------------
     
    292287;       AX, DX
    293288;--------------------------------------------------------------------
    294 
    295289%ifndef MODULE_STRINGS_COMPRESSED
    296290;;;
    297291;;; Take care when using this routine with compressed strings (which is why it is disabled).
    298292;;; All strings in CSSI should go through the DisplayFormatCompressed code to be decoded.
    299 ;;; 
     293;;;
    300294ALIGN JUMP_ALIGN
    301295DisplayPrint_NullTerminatedStringFromCSSI:
     
    304298    call    DisplayPrint_NullTerminatedStringFromBXSI
    305299    pop     bx
    306 
    307     ret
    308 %endif
    309 
    310        
     300    ret
     301%endif
    311302
    312303
     
    314305;;; Note that the following routines need to be at the bottom of this file
    315306;;; to accomodate short jumps from the next file (DisplayFormat/DisplayFormatCompressed)
    316 ;;; 
     307;;;
    317308
    318309;--------------------------------------------------------------------
     
    329320ALIGN JUMP_ALIGN
    330321DisplayPrint_Newline_FormatAdjustBP:
    331     inc     bp                  ; we didn't need a parameter after all, readjust BP 
     322    inc     bp                  ; we didn't need a parameter after all, readjust BP
    332323    inc     bp
    333324    ; fall through to DisplayPrint_Newline
     
    335326
    336327ALIGN JUMP_ALIGN
    337        
    338328DisplayPrint_Newline:
    339329    mov     al, LF
     
    364354
    365355
    366        
    367356;--------------------------------------------------------------------
    368357; DisplayPrint_NullTerminatedStringFromBXSI
     
    396385    pop     cx
    397386    pop     si
    398        
    399 DisplayPrint_Ret:               ; random ret to jump to                 
    400     ret
    401 
    402 
     387
     388DisplayPrint_Ret:               ; random ret to jump to
     389    ret
     390
Note: See TracChangeset for help on using the changeset viewer.