Changeset 369 in xtideuniversalbios for trunk/Assembly_Library/Src/Display/DisplayContext.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/DisplayContext.asm

    r287 r369  
    1414;       AX, DX, DI
    1515;--------------------------------------------------------------------
    16 ALIGN JUMP_ALIGN
     16ALIGN DISPLAY_JUMP_ALIGN
    1717DisplayContext_Initialize:
    1818    mov     WORD [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.fnCharOut], DEFAULT_CHARACTER_OUTPUT
     
    7979;       AX, DX
    8080;--------------------------------------------------------------------
    81 ALIGN JUMP_ALIGN
     81ALIGN DISPLAY_JUMP_ALIGN
    8282DisplayContext_SynchronizeToHardware:
    8383    call    DisplayPage_SynchronizeToHardware
     
    9595;       AX, DI
    9696;--------------------------------------------------------------------
    97 ALIGN JUMP_ALIGN
     97ALIGN DISPLAY_JUMP_ALIGN
    9898DisplayContext_Push:
    9999    mov     di, ds                  ; Backup DS
     
    121121;       AX, DI
    122122;--------------------------------------------------------------------
    123 ALIGN JUMP_ALIGN
     123ALIGN DISPLAY_JUMP_ALIGN
    124124DisplayContext_Pop:
    125125    mov     di, ds                  ; Backup DS
     
    154154;--------------------------------------------------------------------
    155155%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
    156 ALIGN JUMP_ALIGN
     156ALIGN DISPLAY_JUMP_ALIGN
    157157DisplayContext_PrepareOffScreenBufferInESBXwithLengthInCX:
    158158    push    ds
     
    185185;--------------------------------------------------------------------
    186186%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
    187 ALIGN JUMP_ALIGN
     187ALIGN DISPLAY_JUMP_ALIGN
    188188DisplayContext_SetCharacterPointerFromBXAX:
    189189    mov     [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.fpCursorPosition], ax
     
    205205;--------------------------------------------------------------------
    206206%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
    207 ALIGN JUMP_ALIGN
     207ALIGN DISPLAY_JUMP_ALIGN
    208208DisplayContext_GetCharacterPointerToBXAX:
    209209    mov     ax, [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.fpCursorPosition]
     
    224224;       BL
    225225;--------------------------------------------------------------------
    226 ALIGN JUMP_ALIGN
     226ALIGN DISPLAY_JUMP_ALIGN
    227227DisplayContext_SetCharOutputFunctionFromAXwithAttribFlagInBL:
    228228    and     bl, FLG_CONTEXT_ATTRIBUTES
     
    243243;       Nothing
    244244;--------------------------------------------------------------------
    245 ALIGN JUMP_ALIGN
     245ALIGN DISPLAY_JUMP_ALIGN
    246246DisplayContext_SetCharacterAttributeFromAL:
    247247    mov     [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.bAttribute], al
     
    259259;       Nothing
    260260;--------------------------------------------------------------------
    261 ALIGN JUMP_ALIGN
     261ALIGN DISPLAY_JUMP_ALIGN
    262262DisplayContext_SetCharacterOutputParameterFromAX:
    263263    mov     [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.wCharOutParam], ax
     
    275275;--------------------------------------------------------------------
    276276%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS OR EXCLUDE_FROM_XTIDECFG  ; This is currently unused (dead code)
    277 ALIGN JUMP_ALIGN
     277ALIGN DISPLAY_JUMP_ALIGN
    278278DisplayContext_GetCharacterOutputParameterToDX:
    279279    mov     dx, [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.wCharOutParam]
     
    293293;--------------------------------------------------------------------
    294294%ifndef MODULE_STRINGS_COMPRESSED
    295 ALIGN JUMP_ALIGN
     295ALIGN DISPLAY_JUMP_ALIGN
    296296DisplayContext_GetCharacterOffsetToAXfromByteOffsetInAX:
    297297    test    BYTE [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.bFlags], FLG_CONTEXT_ATTRIBUTES
     
    313313;--------------------------------------------------------------------
    314314%ifndef MODULE_STRINGS_COMPRESSED
    315 ALIGN JUMP_ALIGN
     315ALIGN DISPLAY_JUMP_ALIGN
    316316DisplayContext_GetByteOffsetToAXfromCharacterOffsetInAX:
    317317    test    BYTE [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.bFlags], FLG_CONTEXT_ATTRIBUTES
    318318    jz      SHORT ReturnOffsetInAX
    319319    sal     ax, 1       ; WORD count to BYTE count
    320 ALIGN JUMP_ALIGN, ret
     320ALIGN DISPLAY_JUMP_ALIGN, ret
    321321ReturnOffsetInAX:
    322322    ret
Note: See TracChangeset for help on using the changeset viewer.