ReC98/libs/BorlandC/access.asm

22 lines
391 B
NASM
Raw Normal View History

; 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
push word ptr [bp+@@amode]
if LDATA
2014-09-02 21:24:03 +00:00
push word ptr [bp+@@filename+2]
endif
2014-09-02 21:24:03 +00:00
push word ptr [bp+@@filename]
nopcall __access
add sp, 2 + dPtrSize
2014-09-02 21:24:03 +00:00
pop di
pop si
pop bp
ret
_access endp