Changeset 48 in xtideuniversalbios for trunk/Assembly_Library/Src/Keyboard/Keyboard.asm


Ignore:
Timestamp:
Oct 8, 2010, 3:44:05 PM (14 years ago)
Author:
aitotat
google:author:
aitotat
Message:

Changes to Assembly Library:
Added functions to clear Menu Title and Information areas.
Implemented automatic line change when writing Menu Title and Information areas.
CGA snow related functions have been moved to CgaSnow.asm.
Keyboard input functions no longer produce beep for backspace.

File:
1 edited

Legend:

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

    r41 r48  
    22; Project name  :   Assembly Library
    33; Created date  :   5.7.2010
    4 ; Last update   :   12.8.2010
     4; Last update   :   7.10.2010
    55; Author        :   Tomi Tilli
    66; Description   :   Functions for managing keyboard.
     
    9797    loop    .GetCharacterFromUser
    9898.PlayBellForRejectedCharacter:
     99    cmp     al, BS                              ; No bell for backspace
     100    je      SHORT .GetCharacterFromUser
    99101    call    Keyboard_PlayBellForUnwantedKeystroke
    100102    jmp     SHORT .GetCharacterFromUser
     
    169171    dec     di
    170172    call    Keyboard_PrintBackspace
     173    mov     al, BS                              ; Restore character
    171174.RejectCharacter:
    172175    test    al, al                              ; Clear ZF...
     
    227230    push    di
    228231    CALL_DISPLAY_LIBRARY PrintCharacterFromAL
    229     CALL_DISPLAY_LIBRARY SynchronizeDisplayContextToHardware
     232    CALL_DISPLAY_LIBRARY SynchronizeDisplayContextToHardware    ; Hardware cursor
    230233    pop     di
    231234    ret
Note: See TracChangeset for help on using the changeset viewer.