OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [newlib/] [libc/] [sys/] [h8300hms/] [_exit.S] - Blame information for rev 326

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
#include "setarch.h"
2
 
3
/* `sleep' is passed an argument in r0 that indicates the reason
4
   the program is exiting.  The format of r0 is defined in
5
   devo/include/wait.h. */
6
 
7
/* extern void _exit (int rc); */
8
 
9
        .section .text
10
        .align 2
11
        .global __exit
12
__exit:
13
        mov.w   #0xdead,r1
14
        mov.w   #0xbeef,r2
15
        mov.b   r0l,r0h
16
        sub.b   r0l,r0l
17
        sleep

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.