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


Ignore:
Timestamp:
Mar 29, 2012, 9:29:28 AM (12 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Removed align directives for initalization code and added define for align in boot-time calls to the assembly library (defaulting to 1), resulting in a significant savings for the AT and 386 builds. Fixed a bug with switch command line handling in the serial server. Put in CR characters in licesnse.txt, so that it properly displays on Windows. In the configurator, added default values for user supplied CHS and LBA values, defaulting to values within range when those features are enabled. Updated the copyright message in the configurator as the literal word Copyright is important.

File:
1 edited

Legend:

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

    r341 r369  
    4242;       AX, DX
    4343;--------------------------------------------------------------------
    44 ALIGN JUMP_ALIGN
     44ALIGN DISPLAY_JUMP_ALIGN
    4545DisplayPrint_FormattedNullTerminatedStringFromCSSI:
    4646    push    bp
     
    7979;--------------------------------------------------------------------
    8080%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
    81 ALIGN JUMP_ALIGN
     81ALIGN DISPLAY_JUMP_ALIGN
    8282DisplayPrint_SignedWordFromAXWithBaseInBX:
    8383    test    ax, ax
     
    106106;       AX, DX
    107107;--------------------------------------------------------------------
    108 ALIGN JUMP_ALIGN
     108ALIGN DISPLAY_JUMP_ALIGN
    109109DisplayPrint_WordFromAXWithBaseInBX:
    110110    push    cx
     
    112112
    113113    xor     cx, cx
    114 ALIGN JUMP_ALIGN
     114ALIGN DISPLAY_JUMP_ALIGN
    115115.DivideLoop:
    116116    xor     dx, dx              ; DX:AX now holds the integer
     
    123123PrintAllPushedDigits:
    124124    mov     bx, g_rgcDigitToCharacter
    125 ALIGN JUMP_ALIGN
     125ALIGN DISPLAY_JUMP_ALIGN
    126126.PrintNextDigit:
    127127    pop     ax                  ; Pop digit
     
    149149;--------------------------------------------------------------------
    150150%ifndef EXCLUDE_FROM_XTIDECFG   ; Not used in XTIDECFG
    151 ALIGN JUMP_ALIGN
     151ALIGN DISPLAY_JUMP_ALIGN
    152152DisplayPrint_QWordFromSSBPwithBaseInBX:
    153153    push    cx
     
    156156    mov     cx, bx              ; CX = Integer base
    157157    xor     bx, bx              ; BX = Character count
    158 ALIGN JUMP_ALIGN
     158ALIGN DISPLAY_JUMP_ALIGN
    159159.DivideLoop:
    160160    call    Math_DivQWatSSBPbyCX; Divide by base
     
    183183;--------------------------------------------------------------------
    184184%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
    185 ALIGN JUMP_ALIGN
     185ALIGN DISPLAY_JUMP_ALIGN
    186186DisplayPrint_CharacterBufferFromBXSIwithLengthInCX:
    187187    jcxz    .NothingToPrintSinceZeroLength
     
    189189    push    cx
    190190
    191 ALIGN JUMP_ALIGN
     191ALIGN DISPLAY_JUMP_ALIGN
    192192.PrintNextCharacter:
    193193    mov     ds, bx
     
    216216;       AX, DX
    217217;--------------------------------------------------------------------
    218 ALIGN JUMP_ALIGN
     218ALIGN DISPLAY_JUMP_ALIGN
    219219DisplayPrint_ClearScreenWithCharInALandAttributeInAH:
    220220    push    di
     
    248248;--------------------------------------------------------------------
    249249%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
    250 ALIGN JUMP_ALIGN
     250ALIGN DISPLAY_JUMP_ALIGN
    251251DisplayPrint_ClearAreaWithHeightInAHandWidthInAL:
    252252    push    si
     
    259259    xor     cx, cx
    260260
    261 ALIGN JUMP_ALIGN
     261ALIGN DISPLAY_JUMP_ALIGN
    262262.ClearRowLoop:
    263263    mov     cl, bl                          ; Area width now in CX
     
    291291;       DX
    292292;--------------------------------------------------------------------
    293 ALIGN JUMP_ALIGN
     293ALIGN DISPLAY_JUMP_ALIGN
    294294DisplayPrint_RepeatCharacterFromALwithCountInCX:
    295295    jcxz    .NothingToRepeat
    296296    push    cx
    297297
    298 ALIGN JUMP_ALIGN
     298ALIGN DISPLAY_JUMP_ALIGN
    299299.RepeatCharacter:
    300300    push    ax
     
    324324;;; All strings in CSSI should go through the DisplayFormatCompressed code to be decoded.
    325325;;;
    326 ALIGN JUMP_ALIGN
     326ALIGN DISPLAY_JUMP_ALIGN
    327327DisplayPrint_NullTerminatedStringFromCSSI:
    328328    push    bx
     
    350350;--------------------------------------------------------------------
    351351%ifdef MODULE_STRINGS_COMPRESSED
    352 ALIGN JUMP_ALIGN
     352ALIGN DISPLAY_JUMP_ALIGN
    353353DisplayPrint_Newline_FormatAdjustBP:
    354354    inc     bp                  ; we didn't need a parameter after all, readjust BP
     
    357357%endif
    358358
    359 ALIGN JUMP_ALIGN
     359ALIGN DISPLAY_JUMP_ALIGN
    360360DisplayPrint_Newline:
    361361    mov     al, LF
     
    376376;       AX, DX
    377377;--------------------------------------------------------------------
    378 ALIGN JUMP_ALIGN
     378ALIGN DISPLAY_JUMP_ALIGN
    379379DisplayPrint_CharacterFromAL:
    380380    test    al,al
     
    396396;       AX, DX
    397397;--------------------------------------------------------------------
    398 ALIGN JUMP_ALIGN
     398ALIGN DISPLAY_JUMP_ALIGN
    399399DisplayPrint_NullTerminatedStringFromBXSI:
    400400    push    si
     
    402402
    403403    xor     cx, cx
    404 ALIGN JUMP_ALIGN
     404ALIGN DISPLAY_JUMP_ALIGN
    405405.PrintNextCharacter:
    406406    mov     ds, bx              ; String segment to DS
     
    412412    jmp     SHORT .PrintNextCharacter
    413413
    414 ALIGN JUMP_ALIGN
     414ALIGN DISPLAY_JUMP_ALIGN
    415415.EndOfString:
    416416    pop     cx
Note: See TracChangeset for help on using the changeset viewer.