From ad569c8f2fb68c58e294d0e9a35348c153085263 Mon Sep 17 00:00:00 2001 From: cuz Date: Tue, 12 Aug 2003 13:24:25 +0000 Subject: [PATCH] New chdir() function git-svn-id: svn://svn.cc65.org/cc65/trunk@2273 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/common/Makefile | 1 + libsrc/common/chdir.s | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 libsrc/common/chdir.s 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 + + + + -- 2.39.5