From: cuz Date: Tue, 12 Aug 2003 13:24:25 +0000 (+0000) Subject: New chdir() function X-Git-Tag: V2.12.0~1453 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ad569c8f2fb68c58e294d0e9a35348c153085263;p=cc65 New chdir() function git-svn-id: svn://svn.cc65.org/cc65/trunk@2273 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/common/Makefile b/libsrc/common/Makefile index 2c850d8b3..de9459c4f 100644 --- a/libsrc/common/Makefile +++ b/libsrc/common/Makefile @@ -72,6 +72,7 @@ S_OBJS = _fdesc.o \ atexit.o \ atoi.o \ calloc.o \ + chdir.o \ copydata.o \ creat.o \ ctime.o \ diff --git a/libsrc/common/chdir.s b/libsrc/common/chdir.s new file mode 100644 index 000000000..4a17d4910 --- /dev/null +++ b/libsrc/common/chdir.s @@ -0,0 +1,24 @@ +; +; Ullrich von Bassewitz, 2003-08-12 +; +; int __fastcall__ chdir (const char* name); +; + + .export _chdir + + .import __syschdir + .import oserrcheck + + +;-------------------------------------------------------------------------- + +.proc _chdir + + jsr __syschdir ; Call the machine specific function + jmp oserrcheck ; Store into _oserror, set errno, return 0/-1 + +.endproc + + + +