source: trunk/libs/newlib/src/newlib/libc/machine/h8500/setjmp.S @ 444

Last change on this file since 444 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 308 bytes
Line 
1!
2        .file   "setjmp.S"
3        .section .text
4
5        .global _setjmp
6_setjmp:
7        mov.w   r7,@r0+
8        mov.w   r6,@r0+
9        mov.w   r5,@r0+
10        mov.w   @sp,r1
11        mov.w   r1,@r0
12        clr.w   r0
13        rts
14
15        .global _longjmp
16_longjmp:
17        mov.w   @r0+,r7
18        mov.w   @r0+,r6
19        mov.w   @r0+,r5
20        mov.w   @r0,r2
21        mov.w   r2,@sp
22        mov.w   r1,r0
23        tst.w   r0
24        bne     .L1
25        mov.w   #1,r0
26.L1:
27        rts
Note: See TracBrowser for help on using the repository browser.