home *** CD-ROM | disk | FTP | other *** search
/ Turbo Toolbox / Turbo_Toolbox.iso / 1990 / 07 / einsteig / cr_file.asm < prev    next >
Encoding:
Assembly Source File  |  1990-04-10  |  624 b   |  24 lines

  1. .MODEL SMALL
  2. .CODE
  3.           PUBLIC _create_file
  4.           
  5. _create_file  PROC
  6.           push bp
  7.           mov  bp,sp
  8.           
  9. ;** Filename über DS:Segmentadresse DX:Offsetadresse ******
  10.  
  11.           mov  DS, [bp+4]               ;Segment          
  12.           mov  dx, [bp+6]               ;Offset
  13.           mov  cx, [bp+8]               ;Attribute
  14.           
  15.           mov  ah, 3Ch                  ;Funktionsnummer
  16.           int 21h
  17.                     
  18.           jnc ok
  19.           mov ax,0ffffh                 ;Fehler aufgetreten
  20. ok:
  21.           pop  bp
  22.           ret
  23. _create_file  ENDP
  24.           END