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
|
|
|
|
|
|
|
! Say whether a file exists with the given name.
|
|
|
|
|
|
|
|
.define __sys_exists
|
|
|
|
__sys_exists:
|
2022-08-26 17:20:56 +00:00
|
|
|
mov eax, 4(esp)
|
|
|
|
call .sys_scpyout
|
|
|
|
jc 9f
|
|
|
|
xchg edx, eax
|
2022-08-18 22:08:57 +00:00
|
|
|
mov eax, 0x4300
|
2022-08-26 17:20:56 +00:00
|
|
|
call .sys_dpmidos
|
|
|
|
9:
|
2022-08-18 22:08:57 +00:00
|
|
|
sbb eax, eax
|
|
|
|
inc eax
|
2022-08-07 20:10:08 +00:00
|
|
|
ret
|