Changeset 85 in xtideuniversalbios for trunk/Assembly_Library/Src


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

Changes to Assembly Library:

  • Some minor adjustments
Location:
trunk/Assembly_Library/Src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Assembly_Library/Src/AssemblyLibrary.asm

    r54 r85  
    1 ; File name     :   AssemblyLibrary.asm
    21; Project name  :   Assembly Library
    3 ; Created date  :   15.9.2010
    4 ; Last update   :   24.10.2010
    5 ; Author        :   Tomi Tilli
    62; Description   :   Assembly Library main file. This is the only file that
    73;                   needs to be included.
     
    7268
    7369%ifdef INCLUDE_UTIL_LIBRARY
    74     %include "Bit.asm"
     70    %ifndef EXCLUDE_BIT_UTILS
     71        %include "Bit.asm"
     72    %endif
    7573    %include "Memory.asm"
    7674    %include "Registers.asm"
    7775    %include "Size.asm"
    78     %include "Sort.asm"
     76    %ifndef EXCLUDE_SORT_UTILS
     77        %include "Sort.asm"
     78    %endif
    7979%endif
  • trunk/Assembly_Library/Src/LibSizeCheck.asm

    r73 r85  
    1 ; File name     :   LibSizeCheck.asm
    21; Project name  :   Assembly Library
    3 ; Created date  :   15.9.2010
    4 ; Last update   :   11.12.2010
    5 ; Author        :   Tomi Tilli
    62; Description   :   Tests for Assembly Library.
    73;                   Builds wanted library functions to check their size.
    84
    95; Include .inc files
    10 %define INCLUDE_DISPLAY_LIBRARY
     6;%define INCLUDE_DISPLAY_LIBRARY
    117;%define INCLUDE_FILE_LIBRARY
    128;%define INCLUDE_KEYBOARD_LIBRARY
    13 ;%define INCLUDE_MENU_LIBRARY
     9%define INCLUDE_MENU_LIBRARY
    1410;%define INCLUDE_MENU_DIALOGS
    1511;%define INCLUDE_STRING_LIBRARY
    1612;%define INCLUDE_TIME_LIBRARY
    1713;%define INCLUDE_UTIL_LIBRARY
     14
     15%define EXCLUDE_BIT_UTILS
     16%define EXCLUDE_SORT_UTILS
    1817%include "AssemblyLibrary.inc"  ; Assembly Library. Must be included first!
    1918
  • trunk/Assembly_Library/Src/Time/TimerTicks.asm

    r60 r85  
    7676; TimerTicks_GetTimeoutTicksLeftToAXfromDSBX
    7777;   Parameters:
    78 ;       AX:         Number of ticks left before timeout
    7978;       DS:BX:      Ptr to timeout variable WORD
    8079;   Returns:
     80;       AX:         Number of ticks left before timeout
    8181;       CF:         Set if timeout
    8282;                   Cleared if time left
  • 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.