mirror of
https://github.com/Stichting-MINIX-Research-Foundation/netbsd.git
synced 2025-08-24 05:17:48 -04:00
22 lines
426 B
ArmAsm
22 lines
426 B
ArmAsm
| Writes Human68k DOS error number to dos_errno.
|
|
| Called on errors of DOS calls.
|
|
|
|
|
| written by ITOH Yasufumi
|
|
| public domain
|
|
|
|
|
| $NetBSD: dos_cerror.S,v 1.2 2011/02/21 02:31:59 itohy Exp $
|
|
|
|
#include "dos_asm.h"
|
|
#include "dos_errno.h"
|
|
|
|
ASENTRY_NOPROFILE(CERROR)
|
|
movel %d0,%sp@-
|
|
negl %d0
|
|
cmpil #_DOS_EEXIST,%d0
|
|
bnes Lno_eexisists
|
|
moveq #DOS_EEXIST,%d0
|
|
Lno_eexisists:
|
|
movel %d0,_C_LABEL(dos_errno)
|
|
movel %sp@+,%d0
|
|
rts
|