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

trap.S « sh « sys « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4512293e307fb561022ad6ed34c474ccec354447 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
	.text
	.global	___trap34
___trap34:
	trapa	#34
	tst	r1,r1	! r1 is errno
	bt	ret
	mov.l	perrno,r2
	mov.l	r1,@r2
ret:
	rts
	nop
	
	.align	2
perrno:
	.long	_errno