Changeset 77 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Libraries/keys.asm


Ignore:
Timestamp:
Jan 4, 2011, 10:53:15 PM (14 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:

Minor size optimizations plus a bug fix in print.asm in Print_IntSW (DI was left hanging on the stack if the parameter in AX was positive). Also a very minor speed optimization in keys.asm in Keys_Backspace.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Libraries/keys.asm

    r3 r77  
    22; Project name  :   Keyboard library
    33; Created date  :   17.11.2009
    4 ; Last update   :   31.12.2009
    5 ; Author        :   Tomi Tilli
     4; Last update   :   4.1.2011
     5; Author        :   Tomi Tilli,
     6;               :   Krister Nordvall (optimizations)
    67; Description   :   ASM library to for keyboard related functions.     
    78
     
    311312ALIGN JUMP_ALIGN
    312313Keys_Backspace:
    313     push    dx
    314314    test    si, si              ; At the beginning?
    315315    jz      .Return             ;  If so, return
     316    push    dx                  ; Save DX
    316317    dec     si                  ; Decrement char counter
    317318    dec     di                  ; Decrement offset to buffer
     
    322323    mov     dl, BS              ; Back again
    323324    PRINT_CHAR
     325    pop     dx                  ; Restore DX
    324326ALIGN JUMP_ALIGN
    325327.Return:
    326     pop     dx
    327     ret
    328 %endif
     328    ret
     329%endif
Note: See TracChangeset for help on using the changeset viewer.