Changeset 446 in xtideuniversalbios


Ignore:
Timestamp:
Aug 31, 2012, 5:43:21 PM (12 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to Assembly Library:

  • File Library can now create files.
Location:
trunk/Assembly_Library
Files:
3 edited

Legend:

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

    r427 r446  
    4343
    4444; BIOS disk functions
     45READ_SECTORS_INTO_MEMORY        EQU     02h
    4546GET_DRIVE_PARAMETERS            EQU     08h
    4647RESET_HARD_DISK                 EQU     0Dh
  • trunk/Assembly_Library/Inc/DosFunctions.inc

    r85 r446  
    1 ; File name     :   DosFunctions.inc
    21; Project name  :   AssemblyLibrary
    3 ; Created date  :   1.9.2010
    4 ; Last update   :   3.1.2011
    5 ; Author        :   Tomi Tilli
    62; Description   :   Defines for MS-DOS functions.
    73%ifndef DOS_FUNCTIONS_INC
     
    1915GET_DOS_DRIVE_PARAMETER_BLOCK_FOR_SPECIFIC_DRIVE    EQU     32h
    2016SET_CURRENT_DIRECTORY                               EQU     3Bh
     17CREATE_OR_TRUNCATE_FILE                             EQU     3Ch
    2118OPEN_EXISTING_FILE                                  EQU     3Dh
    2219CLOSE_FILE                                          EQU     3Eh
  • trunk/Assembly_Library/Src/File/FileIO.asm

    r376 r446  
    2323
    2424;--------------------------------------------------------------------
     25; FileIO_CreateWithPathInDSSIandAttributesInCX
     26;   Parameters:
     27;       CX:     File attribute flags
     28;       DS:SI:  Ptr to NULL terminated path or file name
     29;   Returns:
     30;       AX:     DOS error code if CF set
     31;       BX:     File handle if CF cleared
     32;       CF:     Clear if file opened successfully
     33;               Set if error
     34;   Corrupts registers:
     35;       AX, BX
     36;--------------------------------------------------------------------
     37ALIGN JUMP_ALIGN
     38FileIO_CreateWithPathInDSSIandAttributesInCX:
     39    xchg    dx, si      ; Path now in DS:DX
     40    mov     ah, CREATE_OR_TRUNCATE_FILE
     41    jmp     SHORT CreateOrOpenFile
     42
     43
     44;--------------------------------------------------------------------
    2545; FileIO_OpenWithPathInDSSIandFileAccessInAL
    2646;   Parameters:
     
    3959    xchg    dx, si      ; Path now in DS:DX
    4060    mov     ah, OPEN_EXISTING_FILE
     61CreateOrOpenFile:
    4162    int     DOS_INTERRUPT_21h
    4263    xchg    si, dx
Note: See TracChangeset for help on using the changeset viewer.