2022-08-07 20:10:08 +00:00
|
|
|
#
|
|
|
|
! $Source$
|
|
|
|
! $State$
|
|
|
|
! $Revision$
|
|
|
|
|
2022-08-26 17:20:56 +00:00
|
|
|
#include "libsysasm.h"
|
2022-08-07 20:10:08 +00:00
|
|
|
|
|
|
|
! Create or truncate a file.
|
|
|
|
|
|
|
|
.define __sys_rawcreat
|
|
|
|
__sys_rawcreat:
|
2022-08-18 22:08:57 +00:00
|
|
|
! Copy filename to transfer buffer.
|
|
|
|
|
2022-08-26 17:20:56 +00:00
|
|
|
mov eax, 4(esp)
|
|
|
|
call .sys_scpyout
|
|
|
|
jc 9f
|
2022-08-18 22:08:57 +00:00
|
|
|
|
|
|
|
! Make the DOS call.
|
|
|
|
|
2022-08-26 17:20:56 +00:00
|
|
|
xchg edx, eax
|
2022-08-07 20:10:08 +00:00
|
|
|
movb ah, 0x3c
|
2022-08-26 17:20:56 +00:00
|
|
|
movb al, 8(esp)
|
|
|
|
call .sys_dpmidos
|
|
|
|
|
2022-08-07 20:10:08 +00:00
|
|
|
jmp .sys_axret
|
2022-08-18 22:08:57 +00:00
|
|
|
|
2022-08-26 17:20:56 +00:00
|
|
|
9:
|
|
|
|
jmp .sys_toolongret
|