Changeset 85 in xtideuniversalbios for trunk/Assembly_Library/Src/Util/Size.asm


Ignore:
Timestamp:
Jan 25, 2011, 4:47:03 PM (13 years ago)
Author:
aitotat
google:author:
aitotat
Message:

Changes to Assembly Library:

  • Some minor adjustments
File:
1 edited

Legend:

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

    r41 r85  
    1 ; File name     :   Size.asm
    21; Project name  :   Assembly Library
    3 ; Created date  :   7.9.2010
    4 ; Last update   :   15.9.2010
    5 ; Author        :   Tomi Tilli
    62; Description   :   Functions for size calculations.
     3
     4struc BYTE_MULTIPLES
     5    .B          resb    1
     6    .kiB        resb    1
     7    .MiB        resb    1
     8    .GiB        resb    1
     9    .TiB        resb    1
     10endstruc
    711
    812; Section containing code
     
    1014
    1115;--------------------------------------------------------------------
    12 ; Size_GetWordSizeToAXfromBXDXAXwithMagnitudeInCX
     16; Size_GetSizeToAXAndCharToDLfromBXDXAXwithMagnitudeInCX
    1317;   Parameters:
    1418;       BX:DX:AX:   Size in magnitude
    15 ;       CX:         Magnitude (0=B, 1=kiB, 2=MiB...)
     19;       CX:         Magnitude in BYTE_MULTIPLES
    1620;   Returns:
    1721;       AX:         Size in magnitude
     
    5256;   Parameters:
    5357;       BX:DX:AX:   Size
    54 ;       CX:         Magnitude (0=B, 1=kiB, 2=MiB...)
     58;       CX:         Magnitude in BYTE_MULTIPLES
    5559;   Returns:
    5660;       BX:DX:AX:   Size in magnitude
    5761;       SI:         Remainder (0...1023)
    58 ;       CX:         Magnitude (1=kiB, 2=MiB...)
     62;       CX:         Magnitude in BYTE_MULTIPLES
    5963;   Corrupts registers:
    6064;       Nothing
     
    121125; Size_GetMagnitudeCharacterToDLfromMagnitudeInCX
    122126;   Parameters:
    123 ;       CX:     Magnitude (0=B, 1=kiB, 2=MiB...)
     127;       CX:     Magnitude in BYTE_MULTIPLES
    124128;   Returns:
    125129;       DL:     Magnitude character
Note: See TracChangeset for help on using the changeset viewer.