Changeset 162 in xtideuniversalbios for trunk/Configurator


Ignore:
Timestamp:
May 28, 2011, 7:34:42 PM (14 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:

Changes to all parts of the project:

  • Size optimizations, mostly by excluding code from the BIOS.
  • Cleaned the source a bit, fixed spelling and grammar mistakes.
Location:
trunk/Configurator
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Configurator/Inc/emulate.inc

    r2 r162  
    329329        db  01100101b
    330330    %else
    331         %error "Invalid segment overried passed to eSEG!"
     331        %error "Invalid segment override passed to eSEG!"
    332332    %endif
    333333%endmacro
  • trunk/Configurator/Src/Libraries/file.asm

    r2 r162  
    1 ; File name     :   file.asm
    21; Project name  :   File library
    3 ; Created date  :   19.11.2009
    4 ; Last update   :   24.11.2009
    5 ; Author        :   Tomi Tilli
    6 ; Description   :   ASM library for DOS file handling. 
     2; Description   :   ASM library for DOS file handling.
    73
    84;--------------- Equates -----------------------------
     
    6965; Returns pointer to error string.
    7066; Pointer is always valid, even if error code is not.
    71 ; 
     67;
    7268; File_GetErrStr
    7369;   Parameters:
     
    111107; Opens file for reading and writing.
    112108; File must be closed with File_Close when no longer needed.
    113 ; 
     109;
    114110; File_Open
    115111;   Parameters:
     
    137133;--------------------------------------------------------------------
    138134; Closes file.
    139 ; 
     135;
    140136; File_Close
    141137;   Parameters:
     
    159155; File position is updated so next read will start where
    160156; previous read stopped.
    161 ; 
     157;
    162158; File_Read
    163159;   Parameters:
     
    191187; File position is updated so next write will start where
    192188; previous write stopped.
    193 ; 
     189;
    194190; File_Write
    195191;   Parameters:
     
    221217;--------------------------------------------------------------------
    222218; Sets current file position to wanted offset.
    223 ; 
     219;
    224220; File_SetFilePos
    225221;   Parameters:
     
    244240;--------------------------------------------------------------------
    245241; Changes current default drive.
    246 ; 
     242;
    247243; File_SetDrive
    248244;   Parameters:
     
    263259; Returns current default drive and number of
    264260; potentially drive letters available.
    265 ; 
     261;
    266262; File_GetDrive
    267263;   Parameters:
     
    286282
    287283;--------------------------------------------------------------------
    288 ; Checks are the potentially valid drive letters returned by 
     284; Checks are the potentially valid drive letters returned by
    289285; File_SetDrive and File_GetDrive actually valid or not.
    290 ; 
     286;
    291287; File_IsDrive
    292288;   Parameters:
     
    315311;--------------------------------------------------------------------
    316312; Returns number of valid drive letters.
    317 ; 
     313;
    318314; File_GetValidDrvCnt
    319315;   Parameters:
     
    337333    inc     dx                  ; Increment drive number
    338334    loop    .LetterLoop         ; Loop while drive letters left
    339     eMOVZX  cx, dh              ; Valid drv count to CX
     335    mov     cl, dh              ; Valid drv count to CX
    340336    ret
    341337
     
    344340; Return device number for Nth valid drive.
    345341; This function does not check if index in CX is valid.
    346 ; 
     342;
    347343; File_GetNthValidDrv
    348344;   Parameters:
     
    353349;   Corrupts registers:
    354350;       CX
    355 ;--------------------------------------------------------------------   
     351;--------------------------------------------------------------------
    356352ALIGN JUMP_ALIGN
    357353File_GetNthValidDrv:
     
    371367;--------------------------------------------------------------------
    372368; Changes current directory.
    373 ; 
     369;
    374370; File_ChangeDir
    375371;   Parameters:
     
    391387;--------------------------------------------------------------------
    392388; Finds files from wanted path using search wildcard characters.
    393 ; 
     389;
    394390; File_FindAndCount
    395391;   Parameters:
     
    419415; Finds files from wanted path using search wildcard characters.
    420416; Ptr to DTA is returned for wanted file.
    421 ; 
     417;
    422418; File_GetDTA
    423419;   Parameters:
     
    457453;--------------------------------------------------------------------
    458454; Find first file or directory.
    459 ; 
     455;
    460456; File_FindFirst
    461457;   Parameters:
     
    482478; Find next file or directory. File_FindFirst must always be called
    483479; before calling File_FindNext.
    484 ; 
     480;
    485481; File_FindNext
    486482;   Parameters:
Note: See TracChangeset for help on using the changeset viewer.