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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [newlib/] [libc/] [machine/] [mn10200/] [setjmp.S] - Blame information for rev 855

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

Line No. Rev Author Line
1 148 jeremybenn
        .file "setjmp.S"
2
 
3
        .section .text
4
        .align 1
5
        .global _setjmp
6
_setjmp:
7
        mov d0,a0
8
        movx d2,(0,a0)
9
        movx d3,(4,a0)
10
        mov a1,(8,a0)
11
        mov a2,(12,a0)
12
        mov a3,(16,a0)
13
        movx (0,a3),d0
14
        movx d0,(20,a0)
15
        sub d0,d0
16
        rts
17
 
18
        .global _longjmp
19
_longjmp:
20
        mov d0,a0
21
        movx (0,a0),d2
22
        movx (4,a0),d3
23
        mov (8,a0),a1
24
        mov (12,a0),a2
25
        mov (16,a0),a3
26
        movx (20,a0),d0
27
        movx d0,(0,a3)
28
        cmp 0,d1
29
        bne L1
30
        mov 1,d1
31
L1:
32
        mov d1,d0
33
        rts

powered by: WebSVN 2.1.0

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