Home | History | Annotate | Line # | Download | only in libdos
      1  1.1  itohy |	Writes Human68k DOS error number to  dos_errno.
      2  1.1  itohy |	Called on errors of DOS calls.
      3  1.1  itohy |
      4  1.2  itohy |	written by ITOH Yasufumi
      5  1.1  itohy |	public domain
      6  1.1  itohy |
      7  1.2  itohy |	$NetBSD: dos_cerror.S,v 1.2 2011/02/21 02:31:59 itohy Exp $
      8  1.1  itohy 
      9  1.1  itohy #include "dos_asm.h"
     10  1.1  itohy #include "dos_errno.h"
     11  1.1  itohy 
     12  1.1  itohy ASENTRY_NOPROFILE(CERROR)
     13  1.1  itohy 	movel	%d0,%sp@-
     14  1.1  itohy 	negl	%d0
     15  1.1  itohy 	cmpil	#_DOS_EEXIST,%d0
     16  1.1  itohy 	bnes	Lno_eexisists
     17  1.1  itohy 	moveq	#DOS_EEXIST,%d0
     18  1.1  itohy Lno_eexisists:
     19  1.1  itohy 	movel	%d0,_C_LABEL(dos_errno)
     20  1.1  itohy 	movel	%sp@+,%d0
     21  1.1  itohy 	rts
     22