Changeset 446 in xtideuniversalbios
- Timestamp:
- Aug 31, 2012, 5:43:21 PM (12 years ago)
- google:author:
- aitotat@gmail.com
- Location:
- trunk/Assembly_Library
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Inc/BiosFunctions.inc
r427 r446 43 43 44 44 ; BIOS disk functions 45 READ_SECTORS_INTO_MEMORY EQU 02h 45 46 GET_DRIVE_PARAMETERS EQU 08h 46 47 RESET_HARD_DISK EQU 0Dh -
trunk/Assembly_Library/Inc/DosFunctions.inc
r85 r446 1 ; File name : DosFunctions.inc2 1 ; Project name : AssemblyLibrary 3 ; Created date : 1.9.20104 ; Last update : 3.1.20115 ; Author : Tomi Tilli6 2 ; Description : Defines for MS-DOS functions. 7 3 %ifndef DOS_FUNCTIONS_INC … … 19 15 GET_DOS_DRIVE_PARAMETER_BLOCK_FOR_SPECIFIC_DRIVE EQU 32h 20 16 SET_CURRENT_DIRECTORY EQU 3Bh 17 CREATE_OR_TRUNCATE_FILE EQU 3Ch 21 18 OPEN_EXISTING_FILE EQU 3Dh 22 19 CLOSE_FILE EQU 3Eh -
trunk/Assembly_Library/Src/File/FileIO.asm
r376 r446 23 23 24 24 ;-------------------------------------------------------------------- 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 ;-------------------------------------------------------------------- 37 ALIGN JUMP_ALIGN 38 FileIO_CreateWithPathInDSSIandAttributesInCX: 39 xchg dx, si ; Path now in DS:DX 40 mov ah, CREATE_OR_TRUNCATE_FILE 41 jmp SHORT CreateOrOpenFile 42 43 44 ;-------------------------------------------------------------------- 25 45 ; FileIO_OpenWithPathInDSSIandFileAccessInAL 26 46 ; Parameters: … … 39 59 xchg dx, si ; Path now in DS:DX 40 60 mov ah, OPEN_EXISTING_FILE 61 CreateOrOpenFile: 41 62 int DOS_INTERRUPT_21h 42 63 xchg si, dx
Note:
See TracChangeset
for help on using the changeset viewer.