Changeset 168 in xtideuniversalbios for trunk/Assembly_Library


Ignore:
Timestamp:
Aug 21, 2011, 4:33:39 PM (13 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to Assembly Library:

  • Added eCSETZ macro.
File:
1 edited

Legend:

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

    r162 r168  
    183183%endmacro
    184184
     185
     186;--------------------------------------------------------------------
     187; Conditional Set.
     188;
     189; eCSETcc
     190;   Parameters:
     191;       %1:     Destination data
     192;   Returns:
     193;       Nothing
     194;   Corrupts registers:
     195;       Flags
     196;--------------------------------------------------------------------
     197%macro eCSETZ 1
     198    mov     %1, 0           ; Clear while preserving flags
     199    jnz     SHORT %%Return  ; Nothing to set
     200    inc     %1
     201%%Return:
     202%endmacro
    185203
    186204
Note: See TracChangeset for help on using the changeset viewer.