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


Ignore:
Timestamp:
Oct 12, 2010, 6:51:07 PM (14 years ago)
Author:
aitotat
google:author:
aitotat
Message:

Changes to Assembly Library:
Completely rewritten line splitting (slower but no need to modify string).
Some changes to string processing functions.
Saved few bytes from CGA detection.

File:
1 edited

Legend:

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

    r50 r52  
    22; Project name  :   Assembly Library
    33; Created date  :   27.6.2010
    4 ; Last update   :   27.9.2010
     4; Last update   :   12.10.2010
    55; Author        :   Tomi Tilli
    66; Description   :   Tests for Assembly Library.
     
    7171    mov     BYTE [si+MENUINIT.bTitleLines], TEST_MENU_TITLE_LINES
    7272    mov     BYTE [si+MENUINIT.bInfoLines], TEST_MENU_INFO_LINES
    73     mov     ax, 1
    74     CALL_MENU_LIBRARY HighlightItemFromAX
     73    mov     WORD [si+MENUINIT.wHighlightedItem], 1
    7574    stc
    7675    ret
     
    9594    ret
    9695.szInfoTitle:
    97     db      "Information line 1,",CR,LF,
     96    db      "Information line 1,",LF,CR,
    9897    db      "Information line 2. ",
    9998    db      "This comes (12) right after Information line 2.",NULL
     
    615614    db      "so scroll bars and message dialog can be tested. This string does not use "
    616615    db      "formatting so it should be simple to display this correctly. This string "
    617     db      "does, however, use newline characters. Lets change line right now!",CR,LF,
     616    db      "does, however, use newline characters. Lets change line right now!",LF,CR,
    618617    db      "Well did it work? Let's try line feed alone",LF,"Well? "
     618    db      "Now two LFs:",LF,LF,"What happened? "
    619619    db      "We could also see what two spaces does _  _. There was two spaces between "
    620620    db      "underscores. Lets try three this time _   _. Well, did they work correctly? "
    621     db      "What next, I guess that was all, no wait. Let's see what TAB does! Here it "
    622     db      "goes:",TAB,"Well did it work? Just one more time:",TAB,"Well are we good? "
    623     db      "No since LF is the only supported control character, unfortunately. "
     621    db      "Too bad that LF, CR and BS (backspace) are the only supported control "
     622    db      "characters. Others don't either work or they break line splitting. "
    624623    db      "This is the last sentence of this long string!",NULL
    625624
Note: See TracChangeset for help on using the changeset viewer.