Changeset 149 in xtideuniversalbios for trunk/Assembly_Library/Src/Util


Ignore:
Timestamp:
Apr 29, 2011, 6:58:11 PM (14 years ago)
Author:
Tomi Tilli
google:author:
aitotat
Message:

Changes to Assembly Library:

  • Added pointer normalization functions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Assembly_Library/Src/Util/Registers.asm

    r131 r149  
    6161
    6262;--------------------------------------------------------------------
     63; Registers_NormalizeESSI
     64; Registers_NormalizeESDI
     65;   Parameters
     66;       DS:SI or ES:DI: Ptr to normalize
     67;   Returns:
     68;       DS:SI or ES:DI: Normalized pointer
     69;   Corrupts registers:
     70;       AX, CX
     71;--------------------------------------------------------------------
     72ALIGN JUMP_ALIGN
     73Registers_NormalizeESSI:
     74    NORMALIZE_FAR_POINTER es, si, ax, cx
     75    ret
     76
     77ALIGN JUMP_ALIGN
     78Registers_NormalizeESDI:
     79    NORMALIZE_FAR_POINTER es, di, ax, cx
     80    ret
     81
     82
     83;--------------------------------------------------------------------
    6384; Registers_SetZFifNullPointerInDSSI (commented to save bytes)
    6485;   Parameters
Note: See TracChangeset for help on using the changeset viewer.