Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_exit.S « h8300hms « sys « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7fac3d3442b27ded9cedc36385012d63a47a5beb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "setarch.h"

/* `sleep' is passed an argument in r0 that indicates the reason
   the program is exiting.  The format of r0 is defined in 
   devo/include/wait.h. */ 

/* extern void _exit (int rc); */

	.section .text
	.align 2
	.global __exit
__exit:
	mov.w   #0xdead,r1
	mov.w   #0xbeef,r2
	mov.b   r0l,r0h
	sub.b   r0l,r0l
	sleep