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


Ignore:
Timestamp:
Mar 12, 2011, 1:48:48 PM (13 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:

Size optimizations in various files in the Assembly Library. Also a very small change to a string in XTIDE_Universal_BIOS_Configurator_v2/Src/Strings.asm

File:
1 edited

Legend:

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

    r131 r133  
    1010; Reads user inputted word.
    1111; Function returns when ENTER or ESC will be pressed.
    12 ; 
     12;
    1313; Keyboard_ReadUserInputtedWordWhilePrinting
    1414;   Parameters
     
    5151; supported to ignore unwanted characters.
    5252; Function returns when ENTER or ESC will be pressed.
    53 ; 
     53;
    5454; Keyboard_ReadUserInputtedStringToESDIWhilePrinting
    5555;   Parameters:
     
    249249;       AX
    250250;--------------------------------------------------------------------
     251%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS   ; Only used when debugging
    251252ALIGN JUMP_ALIGN
    252253Keyboard_RemoveAllKeystrokesFromBuffer:
     
    254255    jnz     SHORT Keyboard_RemoveAllKeystrokesFromBuffer
    255256    ret
     257%endif
    256258
    257259
     
    271273;--------------------------------------------------------------------
    272274ALIGN JUMP_ALIGN
    273 Keyboard_GetKeystrokeToAX:
    274     call    Keyboard_GetKeystrokeToAXandLeaveItToBuffer
    275     jnz     SHORT Keyboard_GetKeystrokeToAXandWaitIfNecessary
    276     ret
    277 ALIGN JUMP_ALIGN
    278275Keyboard_GetKeystrokeToAXandLeaveItToBuffer:
    279276    mov     ah, CHECK_FOR_KEYSTROKE
    280277    int     BIOS_KEYBOARD_INTERRUPT_16h
    281278    ret
     279ALIGN JUMP_ALIGN
     280Keyboard_GetKeystrokeToAX:
     281    call    Keyboard_GetKeystrokeToAXandLeaveItToBuffer
     282    jz      SHORT Keyboard_GetKeystrokeToAXReturn
     283    ; Fall to Keyboard_GetKeystrokeToAXandWaitIfNecessary
    282284ALIGN JUMP_ALIGN
    283285Keyboard_GetKeystrokeToAXandWaitIfNecessary:
     
    285287    int     BIOS_KEYBOARD_INTERRUPT_16h
    286288    test    ax, ax                      ; Clear ZF
    287     ret
     289Keyboard_GetKeystrokeToAXReturn:
     290    ret
Note: See TracChangeset for help on using the changeset viewer.