Changeset 44 in xtideuniversalbios for trunk/Assembly_Library/Src/LibraryTests.asm


Ignore:
Timestamp:
Sep 27, 2010, 7:23:36 PM (14 years ago)
Author:
aitotat
google:author:
aitotat
Message:

Spaces can now be generated before format specifier when printing formatted string.
Background character and attribute can now be easily specified before compiling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Assembly_Library/Src/LibraryTests.asm

    r41 r44  
    22; Project name  :   Assembly Library
    33; Created date  :   27.6.2010
    4 ; Last update   :   15.9.2010
     4; Last update   :   27.9.2010
    55; Author        :   Tomi Tilli
    66; Description   :   Tests for Assembly Library.
     
    254254    mov     ax, si
    255255    CALL_DISPLAY_LIBRARY SetCharacterPointerFromBXAX
     256    mov     dl, ATTRIBUTES_NOT_USED
    256257    mov     ax, BUFFER_OUTPUT_WITH_CHAR_ONLY
    257     CALL_DISPLAY_LIBRARY SetCharacterOutputFunctionFromAX
     258    CALL_DISPLAY_LIBRARY SetCharOutputFunctionFromAXwithAttribFlagInDL
    258259    lea     ax, [si+STRING_BUFFER_SIZE]
    259260    CALL_DISPLAY_LIBRARY SetCharacterOutputParameterFromAX
     
    408409    call    PrintHorizontalRuler
    409410    call    PrintVerticalRuler
     411   
     412    mov     al, COLOR_ATTRIBUTE(COLOR_BRIGHT_WHITE, COLOR_BLACK)
     413    CALL_DISPLAY_LIBRARY SetCharacterAttributeFromAL
    410414
    411415    mov     ax, CURSOR_XY(0, 1)
    412416    CALL_DISPLAY_LIBRARY SetCursorCoordinatesFromAX
    413     mov     al, COLOR_ATTRIBUTE(COLOR_BRIGHT_WHITE, COLOR_BLACK)
    414     CALL_DISPLAY_LIBRARY SetCharacterAttributeFromAL
    415417    call    PrintFormattedStrings
    416418
     
    494496    ret
    495497.szIntegers:
    496     db  "Integers -32768, -1, 0, 1, 65535:          %A|%6d|%6d|%6d|%6d|%6u|",LF,CR,NULL
     498    db  "Integers -32768, -1, 0, 1, 65535:          %A|%6-d|%6-d|%6-d|%6-d|%6-u|",LF,CR,NULL
    497499
    498500.PrintHexadecimals:
     
    508510    ret
    509511.szHexadecimals:
    510     db  "Hexadecimals CACAh, FFFFh, 0, 5A5Ah, A5A5h:%A|%6x|%6x|%6x|%6x|%6x|",LF,CR,NULL
     512    db  "Hexadecimals CACAh, FFFFh, 0, 5A5Ah, A5A5h:%A|%6-x|%6-x|%6-x|%6-x|%6-x|",LF,CR,NULL
    511513
    512514.PrintCharacters:
Note: See TracChangeset for help on using the changeset viewer.