1 1.1.10.2 bouyer | Writes Human68k DOS error number to dos_errno. 2 1.1.10.2 bouyer | Called on errors of DOS calls. 3 1.1.10.2 bouyer | 4 1.1.10.2 bouyer | written by Yasha (ITOH Yasufumi) 5 1.1.10.2 bouyer | public domain 6 1.1.10.2 bouyer | 7 1.1.10.2 bouyer | $NetBSD: dos_cerror.S,v 1.1.10.2 2000/11/20 20:30:13 bouyer Exp $ 8 1.1.10.2 bouyer 9 1.1.10.2 bouyer #include "dos_asm.h" 10 1.1.10.2 bouyer #include "dos_errno.h" 11 1.1.10.2 bouyer 12 1.1.10.2 bouyer ASENTRY_NOPROFILE(CERROR) 13 1.1.10.2 bouyer movel %d0,%sp@- 14 1.1.10.2 bouyer negl %d0 15 1.1.10.2 bouyer cmpil #_DOS_EEXIST,%d0 16 1.1.10.2 bouyer bnes Lno_eexisists 17 1.1.10.2 bouyer moveq #DOS_EEXIST,%d0 18 1.1.10.2 bouyer Lno_eexisists: 19 1.1.10.2 bouyer movel %d0,_C_LABEL(dos_errno) 20 1.1.10.2 bouyer movel %sp@+,%d0 21 1.1.10.2 bouyer rts 22