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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [newlib-1.18.0/] [newlib-1.18.0-or32-1.0rc2/] [newlib/] [libc/] [sys/] [h8300hms/] [_exit.S] - Rev 520

Compare with Previous | Blame | View Log

#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

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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