Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 721d2df5da408674ea66b1cefbdef25ba6464bb7 (plain) (blame)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
 * AsmTest.S
 */

#include <include.h>

	.globl globalLabel1
	.global globalLabel2, globalLabel3

nonGlobalLabel:
	nop
	ret   @ arm style comment
/* end */

globalLabel1:
	movl    %esp, %eax
	movl    %eax, storage
otherLabel1:
	movb	$0x81, %ah  # end-of-line comment
	jmp	globalLabel2

; data	
storage:
	.long 0
/* end */

#define MACRO mmm

	/*
	 * block comment
	 */	
globalLabel2:
	movl    %esp, %eax
	movl    %eax, storage

; line comment

otherLabel2:
	movb	$0x81, %ah  ; end-of-line comment
	jmp	globalLabel3    # comment
/* end */
	
globalLabel3:
	movl    %esp, %eax
	movl    %eax, storage
	
otherLabel3:
	movb	$0x81, %ah
	jmp	globalLabel3
/* end */

	.global alloca
alloca:
	popl %edx
	popl %eax
	addl $3,%eax
	andl $0xfffffffc,%eax
	subl %eax,%esp
	movl %esp,%eax
	pushl %eax
	pushl %edx
	ret
/* end */

Back to the top