Changeset 133 in xtideuniversalbios for trunk/Assembly_Library/Src/File
- Timestamp:
- Mar 12, 2011, 1:48:48 PM (14 years ago)
- google:author:
- krille_n_@hotmail.com
- Location:
- trunk/Assembly_Library/Src/File
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/File/Drive.asm
r41 r133 1 ; File name : Drive.asm2 1 ; Project name : Assembly Library 3 ; Created date : 1.9.20104 ; Last update : 3.9.20105 ; Author : Tomi Tilli6 2 ; Description : Functions for accessing drives. 7 3 … … 52 48 xor bx, bx 53 49 xor ax, ax ; Temporary use BX:AX for flags 54 xor dx, dx; Start from drive 050 cwd ; Start from drive 0 55 51 call .CheckDriveValidityUntilCXisZero 56 52 mov dx, bx ; Flags now in DX:AX … … 163 159 Drive_GetDefaultToAL: 164 160 mov ah, GET_CURRENT_DEFAULT_DRIVE 165 int DOS_INTERRUPT_21h166 ret161 SKIP2B f ; cmp ax, <next instruction> 162 ; Fall to Drive_SetDefaultFromDL 167 163 168 164 … … 176 172 ; AH 177 173 ;-------------------------------------------------------------------- 178 ALIGN JUMP_ALIGN179 174 Drive_SetDefaultFromDL: 180 175 mov ah, SELECT_DEFAULT_DRIVE 181 176 int DOS_INTERRUPT_21h 182 177 ret 183 -
trunk/Assembly_Library/Src/File/FileIO.asm
r105 r133 25 25 xchg si, dx 26 26 mov bx, ax ; Copy file handle to BX 27 ret28 29 30 ;--------------------------------------------------------------------31 ; FileIO_CloseUsingHandleFromBX32 ; Parameters:33 ; BX: File handle34 ; Returns:35 ; AX: DOS error code if CF set36 ; CF: Clear if file closed successfully37 ; Set if error38 ; Corrupts registers:39 ; AX40 ;--------------------------------------------------------------------41 ALIGN JUMP_ALIGN42 FileIO_CloseUsingHandleFromBX:43 mov ah, CLOSE_FILE44 int DOS_INTERRUPT_21h45 27 ret 46 28 … … 70 52 ; File position is updated so next read will start where 71 53 ; previous read stopped. 72 ; 54 ; 73 55 ; FileIO_ReadCXbytesToDSSIusingHandleFromBX 74 56 ; Parameters: … … 117 99 ; File position is updated so next write will start where 118 100 ; previous write stopped. 119 ; 101 ; 120 102 ; FileIO_WriteCXbytesFromDSSIusingHandleFromBX: 121 103 ; Parameters: … … 249 231 250 232 ;-------------------------------------------------------------------- 233 ; FileIO_CloseUsingHandleFromBX 234 ; Parameters: 235 ; BX: File handle 236 ; Returns: 237 ; AX: DOS error code if CF set 238 ; CF: Clear if file closed successfully 239 ; Set if error 240 ; Corrupts registers: 241 ; AX 242 ;-------------------------------------------------------------------- 243 ALIGN JUMP_ALIGN 244 FileIO_CloseUsingHandleFromBX: 245 mov ah, CLOSE_FILE 246 SKIP2B f ; cmp ax, <next instruction> 247 ; Fall to FileIO_SeekFromOriginInALtoOffsetInDXAXusingHandleFromBX 248 249 250 ;-------------------------------------------------------------------- 251 251 ; FileIO_SeekFromOriginInALtoOffsetInDXAXusingHandleFromBX: 252 252 ; Parameters: … … 262 262 ; Nothing 263 263 ;-------------------------------------------------------------------- 264 ALIGN JUMP_ALIGN265 264 FileIO_SeekFromOriginInALtoOffsetInDXAXusingHandleFromBX: 266 265 mov ah, SET_CURRENT_FILE_POSITION
Note:
See TracChangeset
for help on using the changeset viewer.