Changeset 590 in xtideuniversalbios for trunk/Assembly_Library/Src/Display/DisplayPrint.asm


Ignore:
Timestamp:
May 25, 2016, 8:16:35 AM (8 years ago)
Author:
krille_n_
Message:

Changes:

  • Updated URLs and copyright info in BIOSDRVS and XTIDECFG.
  • BIOSDRVS should now build under Linux.
  • Minor optimizations to the library.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Assembly_Library/Src/Display/DisplayPrint.asm

    r589 r590  
    8383
    8484;--------------------------------------------------------------------
    85 ; DisplayPrint_SignedWordFromAXWithBaseInBX
     85; DisplayPrint_SignedWordFromAXWithBaseInBL
    8686;   Parameters:
    8787;       AX:     Word to display
    88 ;       BX:     Integer base (binary=2, octal=8, decimal=10, hexadecimal=16)
    89 ;       DS:     BDA segment (zero)
    90 ;       ES:DI:  Ptr to cursor location in video RAM
    91 ;   Returns:
    92 ;       DI:     Updated offset to video RAM
    93 ;   Corrupts registers:
    94 ;       AX, DX
     88;       BL:     Integer base (binary=2, octal=8, decimal=10, hexadecimal=16)
     89;       DS:     BDA segment (zero)
     90;       ES:DI:  Ptr to cursor location in video RAM
     91;   Returns:
     92;       DI:     Updated offset to video RAM
     93;   Corrupts registers:
     94;       AX, BH, DX
    9595;--------------------------------------------------------------------
    9696%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
    9797ALIGN DISPLAY_JUMP_ALIGN
    98 DisplayPrint_SignedWordFromAXWithBaseInBX:
    99     test    ax, ax
    100     jns     SHORT DisplayPrint_WordFromAXWithBaseInBX
     98DisplayPrint_SignedWordFromAXWithBaseInBL:
     99    sahf
     100    jns     SHORT DisplayPrint_WordFromAXWithBaseInBL
    101101
    102102    push    ax
     
    105105    pop     ax
    106106    neg     ax
    107     ; Fall to DisplayPrint_WordFromAXWithBaseInBX
    108 %endif
    109 
    110 
    111 ;--------------------------------------------------------------------
    112 ; DisplayPrint_WordFromAXWithBaseInBX
     107    ; Fall to DisplayPrint_WordFromAXWithBaseInBL
     108%endif
     109
     110
     111;--------------------------------------------------------------------
     112; DisplayPrint_WordFromAXWithBaseInBL
    113113;   Parameters:
    114114;       AX:     Word to display
    115 ;       BX:     Integer base (binary=2, octal=8, decimal=10, hexadecimal=16)
    116 ;       DS:     BDA segment (zero)
    117 ;       ES:DI:  Ptr to cursor location in video RAM
    118 ;   Returns:
    119 ;       DI:     Updated offset to video RAM
    120 ;   Corrupts registers:
    121 ;       AX, DX
     115;       BL:     Integer base (binary=2, octal=8, decimal=10, hexadecimal=16)
     116;       DS:     BDA segment (zero)
     117;       ES:DI:  Ptr to cursor location in video RAM
     118;   Returns:
     119;       DI:     Updated offset to video RAM
     120;   Corrupts registers:
     121;       AX, BH, DX
    122122;--------------------------------------------------------------------
    123123%ifndef MODULE_STRINGS_COMPRESSED
    124124ALIGN DISPLAY_JUMP_ALIGN
    125 DisplayPrint_WordFromAXWithBaseInBX:
     125DisplayPrint_WordFromAXWithBaseInBL:
    126126    push    cx
    127127
    128128    xor     cx, cx
     129    xor     bh, bh              ; Base now in BX
    129130ALIGN DISPLAY_JUMP_ALIGN
    130131.DivideLoop:
Note: See TracChangeset for help on using the changeset viewer.