Changeset 531 in xtideuniversalbios for trunk/Assembly_Library/Src/Display/DisplayContext.asm


Ignore:
Timestamp:
Mar 30, 2013, 6:50:48 PM (11 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:

Changes:

  • A few minor optimizations.
File:
1 edited

Legend:

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

    r526 r531  
    127127%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
    128128    %assign i 0
    129     %rep DISPLAY_CONTEXT_size / 2
    130         push    WORD [VIDEO_BDA.displayContext + i]
    131     %assign i i+2
    132     %endrep
     129    %ifdef USE_386
     130        %rep DISPLAY_CONTEXT_size / 4
     131            push    DWORD [VIDEO_BDA.displayContext + i]
     132            %assign i i+4
     133        %endrep
     134    %else
     135        %rep DISPLAY_CONTEXT_size / 2
     136            push    WORD [VIDEO_BDA.displayContext + i]
     137            %assign i i+2
     138        %endrep
     139    %endif
    133140%endif
    134141
     
    144151
    145152%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
    146     %assign i DISPLAY_CONTEXT_size-2
    147     %rep DISPLAY_CONTEXT_size / 2
    148         pop     WORD [VIDEO_BDA.displayContext + i]
    149     %assign i i-2
    150     %endrep
     153    %ifdef USE_386
     154        %assign i DISPLAY_CONTEXT_size-4
     155        %rep DISPLAY_CONTEXT_size / 4
     156            pop     DWORD [VIDEO_BDA.displayContext + i]
     157            %assign i i-4
     158        %endrep
     159    %else
     160        %assign i DISPLAY_CONTEXT_size-2
     161        %rep DISPLAY_CONTEXT_size / 2
     162            pop     WORD [VIDEO_BDA.displayContext + i]
     163            %assign i i-2
     164        %endrep
     165    %endif
    151166%endif
    152167
Note: See TracChangeset for help on using the changeset viewer.