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

setjmp.S « h8500 « machine « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4b25fc0c92875c344f89fc42c5c9c52b1832416d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
!
	.file	"setjmp.S"
	.section .text

	.global	_setjmp
_setjmp:
	mov.w	r7,@r0+
	mov.w	r6,@r0+
	mov.w	r5,@r0+
	mov.w	@sp,r1
	mov.w	r1,@r0
	clr.w	r0
	rts

	.global	_longjmp
_longjmp:
	mov.w	@r0+,r7
	mov.w	@r0+,r6
	mov.w	@r0+,r5
	mov.w	@r0,r2
	mov.w	r2,@sp
	mov.w	r1,r0
	tst.w	r0
	bne	.L1
	mov.w	#1,r0
.L1:
	rts