Changeset 590 in xtideuniversalbios for trunk/Assembly_Library/Src/Display/DisplayFormat.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/DisplayFormat.asm

    r589 r590  
    334334d_FormatSignedDecimalWord:
    335335    mov     ax, [bp]
    336     mov     bx, 10
    337     jmp     DisplayPrint_SignedWordFromAXWithBaseInBX
     336    mov     bl, 10
     337    jmp     DisplayPrint_SignedWordFromAXWithBaseInBL
    338338%endif
    339339
     
    341341u_FormatUnsignedDecimalWord:
    342342    mov     ax, [bp]
    343     mov     bx, 10
    344     jmp     DisplayPrint_WordFromAXWithBaseInBX
     343    mov     bl, 10
     344    jmp     DisplayPrint_WordFromAXWithBaseInBL
    345345
    346346ALIGN DISPLAY_JUMP_ALIGN
    347347x_FormatHexadecimalWord:
    348348    mov     ax, [bp]
    349     mov     bx, 16
    350     call    DisplayPrint_WordFromAXWithBaseInBX
     349    mov     bl, 16
     350    call    DisplayPrint_WordFromAXWithBaseInBL
    351351    mov     al, 'h'
    352352    jmp     DisplayPrint_CharacterFromAL
     
    354354ALIGN DISPLAY_JUMP_ALIGN
    355355I_FormatDashForZero:
    356     mov     ax, [bp]
    357     test    ax,ax
    358     jnz     u_FormatUnsignedDecimalWord
    359     mov     [bp], word g_szDashForZero
     356    cmp     WORD [bp], 0
     357    jne     SHORT u_FormatUnsignedDecimalWord
     358    mov     WORD [bp], g_szDashForZero
    360359;;; fall-through
    361360
     
    366365    mov     si, [bp]
    367366
    368     cmp     si, byte 07fh       ; well within the boundaries of ROMVARS_size
     367    cmp     si, BYTE 7Fh        ; well within the boundaries of ROMVARS_size
    369368    jb      .notFormatted
    370369
Note: See TracChangeset for help on using the changeset viewer.