Changeset 195 in xtideuniversalbios


Ignore:
Timestamp:
Nov 19, 2011, 3:37:34 AM (11 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Tiny optimization, switced to using a register that does not need to be preserved.

File:
1 edited

Legend:

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

    r194 r195  
    114114                                                ; if it is zero, DisplayPrint_CharacterFromAL will not emit
    115115
    116     or      dh, al                      ; skip leading zeros, dh keeps track if we have emitted anythng non-zero
    117     jnz     .PrintDigit                 ; note that dh starts at zero, from the div instruction in .DivLoop
     116    or      bh, al                      ; skip leading zeros, bh keeps track if we have emitted anythng non-zero
     117    jnz     .PrintDigit                 ; note that bh starts at zero, from the loop above
    118118
    119119    test    ch,2                        ; are we padding with leading spaces? 
     
    129129.NoHexAdjustment:       
    130130
    131     push    dx                              ; preserve dh for future iterations
    132131    call    DisplayPrint_CharacterFromAL
    133     pop     dx                         
    134132
    135133    jmp     .PrintLoop
Note: See TracChangeset for help on using the changeset viewer.