2014-11-09 10:58:33 +00:00
|
|
|
; int __cdecl access(const char *filename, int amode)
|
|
|
|
_access proc
|
|
|
|
@@filename = DPTR_ (2 + cPtrSize)
|
|
|
|
@@amode = byte ptr (2 + cPtrSize + dPtrSize)
|
2014-09-02 21:24:03 +00:00
|
|
|
|
|
|
|
push bp
|
|
|
|
mov bp, sp
|
|
|
|
push si
|
|
|
|
push di
|
2014-11-09 10:58:33 +00:00
|
|
|
push word ptr [bp+@@amode]
|
|
|
|
if LDATA
|
2014-09-02 21:24:03 +00:00
|
|
|
push word ptr [bp+@@filename+2]
|
2014-11-09 10:58:33 +00:00
|
|
|
endif
|
2014-09-02 21:24:03 +00:00
|
|
|
push word ptr [bp+@@filename]
|
2014-11-09 10:58:33 +00:00
|
|
|
nopcall __access
|
|
|
|
add sp, 2 + dPtrSize
|
2014-09-02 21:24:03 +00:00
|
|
|
pop di
|
|
|
|
pop si
|
|
|
|
pop bp
|
|
|
|
ret
|
2014-11-09 10:58:33 +00:00
|
|
|
_access endp
|