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

crt0.s « sysvnecv70 « sys « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7c4bc77cfbe72afd5ee69c1ec2b4d220568c8e56 (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
28
	.globl	start
start:
	sub.w	#0x8,sp
	mov.w	0x8[sp],[sp]
	movea.w	0xc[sp],r0
	mov.w	r0,0x4[sp]
tloop:	test.w	[r0+]
	jne	tloop	
	cmp.w	r0,[0x4[sp]]
	jge	l1
	sub.w	#0x4,r0
l1:	mov.w	r0,0x8[sp]
	mov.w	r0,_environ


	call	_main,[sp]
	add.w	#0xc,sp
	push	r0
	call	_exit,[sp]
	add.w	#0x4,sp
	chlvl	#0,#1

	.data

	.globl	_environ
_environ:
	.word	0