]> git.sur5r.net Git - cc65/blobdiff - libsrc/common/chdir.s
Merge pull request #369 from groessler/something_to_pull
[cc65] / libsrc / common / chdir.s
index 4a17d4910e6c87b242d751d59df5dd3c5fe4d7a4..3e638cb04886c29e25989c5a951aac8d36720aa3 100644 (file)
@@ -7,18 +7,18 @@
         .export         _chdir
 
         .import         __syschdir
-        .import         oserrcheck
+        .import         __mappederrno
 
 
 ;--------------------------------------------------------------------------
+; The function calls __syschdir, which must check the directory, set it, and
+; copy it to __cwd if it is valid. The copycwd may be used for the latter.
 
 .proc   _chdir
 
         jsr     __syschdir      ; Call the machine specific function
-        jmp     oserrcheck      ; Store into _oserror, set errno, return 0/-1
+        jmp     __mappederrno   ; Store into _oserror, set errno, return 0/-1
 
 .endproc
 
 
-
-