2 ; 2003-08-12, Ullrich von Bassewitz
3 ; 2015-09-24, Greg King
5 ; Helper function for several high-level file functions.
12 ; ----------------------------------------------------------------------------
13 ; int __fastcall__ _directerrno (unsigned char code);
14 ; /* Set errno to a specific error code, clear _oserror, and return -1. Used
19 jsr __seterrno ; Set errno (returns with .A = 0)
20 sta __oserror ; Clear __oserror
21 .if (.cpu .bitand CPU_ISET_65SC02)