xref: /csrg-svn/old/pcc/ccom.tahoe/tests/dev.s (revision 44034)
1*44034SbosticLL0:
2*44034Sbostic	.data
3*44034Sbostic	.text
4*44034Sbostic	.align	1
5*44034Sbostic	.globl	_main
6*44034Sbostic_main:
7*44034Sbostic	.word	L12
8*44034Sbostic	jbr 	L14
9*44034SbosticL15:
10*44034Sbostic	movw	$65535,-54(fp)
11*44034Sbostic	movzwl	-54(fp),r0
12*44034Sbostic	cmpw	r0,$65535
13*44034Sbostic	jneq	L16
14*44034Sbostic	.data	1
15*44034SbosticL18:
16*44034Sbostic	.ascii	"ok\12\0"
17*44034Sbostic	.text
18*44034Sbostic	pushl	$L18
19*44034Sbostic	callf	$8,_printf
20*44034Sbostic	jbr 	L19
21*44034SbosticL16:
22*44034Sbostic	.data	1
23*44034SbosticL20:
24*44034Sbostic	.ascii	"nope\12\0"
25*44034Sbostic	.text
26*44034Sbostic	pushl	$L20
27*44034Sbostic	callf	$8,_printf
28*44034SbosticL19:
29*44034Sbostic	ret#2
30*44034Sbostic	.set	L12,0x0
31*44034SbosticL14:
32*44034Sbostic	subl3	$56,fp,sp
33*44034Sbostic	jbr 	L15
34*44034Sbostic	.data
35