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


Ignore:
Timestamp:
Jan 4, 2011, 10:53:15 PM (13 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/print.asm

    r3 r77  
    22; Project name  :   Print library
    33; Created date  :   6.10.2009
    4 ; Last update   :   31.12.2009
    5 ; Author        :   Tomi Tilli
    6 ; Description   :   ASM library to for character and string
     4; Last update   :   4.1.2011
     5; Author        :   Tomi Tilli,
     6;               :   Krister Nordvall (optimizations)
     7; Description   :   ASM library for character and string
    78;                   printing related functions.
    89
     
    467468ALIGN JUMP_ALIGN
    468469Print_IntSW:
     470    test    ax, ax              ; Positive integer?
     471    jns     Print_IntUW         ;  If so, jump to print it
    469472    push    di                  ; Store DI
    470     cmp     ax, 0               ; Positive integer?
    471     jge     Print_IntUW         ;  If so, jump to print it
    472473    push    ax                  ; Store word
    473474    mov     dl, '-'             ; Print '-'
Note: See TracChangeset for help on using the changeset viewer.