Changeset 85 in xtideuniversalbios


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
Location:
trunk/Assembly_Library
Files:
7 edited

Legend:

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

    r67 r85  
    211211DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL   EQU     181
    212212DOUBLE_RIGHT_HORIZONTAL_TO_SINGLE_VERTICAL  EQU     198
     213SINGLE_VERTICAL                             EQU     179
    213214SINGLE_HORIZONTAL                           EQU     196
    214215SINGLE_LEFT_HORIZONTAL_TO_VERTICAL          EQU     180
  • trunk/Assembly_Library/Inc/DosFunctions.inc

    r50 r85  
    22; Project name  :   AssemblyLibrary
    33; Created date  :   1.9.2010
    4 ; Last update   :   8.10.2010
     4; Last update   :   3.1.2011
    55; Author        :   Tomi Tilli
    66; Description   :   Defines for MS-DOS functions.
     
    1111DOS_INTERRUPT_21h                                   EQU     21h
    1212DOS_CRITICAL_ERROR_HANDLER_24h                      EQU     24h
     13DOS_TSR_MULTIPLEX_INTERRUPT_2Fh                     EQU     2Fh
    1314
    14 ; DOS file functions
     15; DOS drive and file functions
    1516SELECT_DEFAULT_DRIVE                                EQU     0Eh
    1617GET_CURRENT_DEFAULT_DRIVE                           EQU     19h
    17 SET_INTERRUPT_VECTOR                                EQU     25h
    1818GET_DISK_TRANSFER_AREA_ADDRESS                      EQU     2Fh
    1919GET_DOS_DRIVE_PARAMETER_BLOCK_FOR_SPECIFIC_DRIVE    EQU     32h
     
    2727FIND_FIRST_MATCHING_FILE                            EQU     4Eh
    2828FIND_NEXT_MATCHING_FILE                             EQU     4Fh
     29
     30; DOS functions for TSRs
     31SET_INTERRUPT_VECTOR                                EQU     25h
     32GET_INTERRUPT_VECTOR                                EQU     35h
    2933
    3034; DOS errors
  • 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
  • trunk/Assembly_Library/makefile

    r79 r85  
    1919
    2020# Assembly source code file (*.asm):
    21 SRC_ASM = Src/LibraryTests.asm
    22 #SRC_ASM = Src/LibSizeCheck.asm
     21#SRC_ASM = Src/LibraryTests.asm
     22SRC_ASM = Src/LibSizeCheck.asm
    2323
    2424# Program executable file name without extension:
Note: See TracChangeset for help on using the changeset viewer.