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

    r145 r369  
    2121;--------------------------------------------------------------------
    2222%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
    23 ALIGN JUMP_ALIGN
     23ALIGN KEYBOARD_JUMP_ALIGN
    2424Keyboard_ReadUserInputtedWordWhilePrinting:
    2525    push    ds
     
    7171;--------------------------------------------------------------------
    7272%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
    73 ALIGN JUMP_ALIGN
     73ALIGN KEYBOARD_JUMP_ALIGN
    7474Keyboard_ReadUserInputtedStringToESDIWhilePrinting:
    7575    push    di
     
    8282    dec     cx                                  ; Decrement buffer size for NULL
    8383    cld
    84 ALIGN JUMP_ALIGN
     84ALIGN KEYBOARD_JUMP_ALIGN
    8585.GetCharacterFromUser:
    8686    call    Keyboard_GetKeystrokeToAXandWaitIfNecessary ; Get ASCII to AL
     
    121121;       AX, BX, SI
    122122;--------------------------------------------------------------------
    123 ALIGN JUMP_ALIGN
     123ALIGN KEYBOARD_JUMP_ALIGN
    124124.PrepareDisplayContextForKeyboardInput:
    125125    pop     bx                  ; Pop return address to BX
     
    150150;       AH
    151151;--------------------------------------------------------------------
    152 ALIGN JUMP_ALIGN
     152ALIGN KEYBOARD_JUMP_ALIGN
    153153.ProcessControlCharacter:
    154154    cmp     al, CR                              ; ENTER to terminate string?
     
    193193;--------------------------------------------------------------------
    194194%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
    195 ALIGN JUMP_ALIGN
     195ALIGN KEYBOARD_JUMP_ALIGN
    196196Keyboard_PrintBackspace:
    197197    mov     al, BS
     
    214214;--------------------------------------------------------------------
    215215%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
    216 ALIGN JUMP_ALIGN
     216ALIGN KEYBOARD_JUMP_ALIGN
    217217Keyboard_PlayBellForUnwantedKeystroke:
    218218    mov     al, BELL
     
    230230;--------------------------------------------------------------------
    231231%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
    232 ALIGN JUMP_ALIGN
     232ALIGN KEYBOARD_JUMP_ALIGN
    233233Keyboard_PrintInputtedCharacter:
    234234    push    di
     
    250250;--------------------------------------------------------------------
    251251%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS   ; Only used when debugging
    252 ALIGN JUMP_ALIGN
     252ALIGN KEYBOARD_JUMP_ALIGN
    253253Keyboard_RemoveAllKeystrokesFromBuffer:
    254254    call    Keyboard_GetKeystrokeToAX
     
    272272;       Nothing
    273273;--------------------------------------------------------------------
    274 ALIGN JUMP_ALIGN
     274ALIGN KEYBOARD_JUMP_ALIGN
    275275Keyboard_GetKeystrokeToAXandLeaveItToBuffer:
    276276    mov     ah, CHECK_FOR_KEYSTROKE
    277277    int     BIOS_KEYBOARD_INTERRUPT_16h
    278278    ret
    279 ALIGN JUMP_ALIGN
     279ALIGN KEYBOARD_JUMP_ALIGN
    280280Keyboard_GetKeystrokeToAX:
    281281    call    Keyboard_GetKeystrokeToAXandLeaveItToBuffer
    282282    jz      SHORT Keyboard_GetKeystrokeToAXReturn
    283283    ; Fall to Keyboard_GetKeystrokeToAXandWaitIfNecessary
    284 ALIGN JUMP_ALIGN
     284ALIGN KEYBOARD_JUMP_ALIGN
    285285Keyboard_GetKeystrokeToAXandWaitIfNecessary:
    286286    xor     ah, ah                      ; GET_KEYSTROKE
Note: See TracChangeset for help on using the changeset viewer.