Changeset 94 in xtideuniversalbios for trunk/Assembly_Library/Inc


Ignore:
Timestamp:
Jan 28, 2011, 11:53:09 AM (13 years ago)
Author:
Tomi Tilli
google:author:
aitotat
Message:

Changes to Assembly Library:

  • Added eCMOVNZ and eCMOVNE macros.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Assembly_Library/Inc/Emulate.inc

    r64 r94  
    1 ; File name     :   emulate.inc
    21; Project name  :   Emulation library
    3 ; Created date  :   21.10.2009
    4 ; Last update   :   30.11.2010
    5 ; Author        :   Tomi Tilli
    62; Description   :   Macros for emulating later x86 instruction with older
    73;                   processors.
     
    161157%endmacro
    162158
    163 %macro eCMOVE 2
    164     jne     SHORT %%Return
     159%macro eCMOVNZ 2
     160    jz      SHORT %%Return
    165161    mov     %1, %2
    166162%%Return:
     163%endmacro
     164
     165%macro eCMOVE 2
     166    eCMOVZ %1, %2
     167%endmacro
     168
     169%macro eCMOVNE 2
     170    eCMOVNZ %1, %2
    167171%endmacro
    168172
Note: See TracChangeset for help on using the changeset viewer.