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
|
|
|
|
|
|
|
! Open an existing file.
|
|
|
|
|
|
|
|
.define __sys_rawopen
|
|
|
|
__sys_rawopen:
|
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
|
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, 0x3d
|
2022-08-26 17:20:56 +00:00
|
|
|
movb al, 8(esp)
|
|
|
|
call .sys_dpmidos
|
2022-08-18 22:08:57 +00:00
|
|
|
|
2022-08-07 20:10:08 +00:00
|
|
|
jmp .sys_axret
|