Changeset 78 in xtideuniversalbios for trunk/Configurator/Src/Libraries/print.asm


Ignore:
Timestamp:
Jan 5, 2011, 7:36:41 PM (13 years ago)
Author:
aitotat
google:author:
aitotat
Message:

Changes to old configurator:

  • Optimizations by Krille
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Configurator/Src/Libraries/print.asm

    r2 r78  
    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
     
    109110    mov     dl, %1
    110111    PRINT_CHAR
    111     mov     dl, CR
    112     PRINT_CHAR
    113     mov     dl, LF
    114     PRINT_CHAR
     112    ;mov        dl, CR
     113    ;PRINT_CHAR
     114    ;mov        dl, LF
     115    ;PRINT_CHAR
    115116    pop     ax
    116117    pop     dx
     
    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.