summaryrefslogtreecommitdiff
path: root/extorlocal.s
blob: cf63e37181dfb7a7379a7db3259e0acb7cc6cb4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
DATA	s+0(SB)/8,$"hello wo"
DATA	s+8(SB)/4,$"rld\n"
GLOBL	s(SB),$13

TEXT greet(SB), $32
	MOVL $1, BP
	MOVQ $s+0(SB), DI
	MOVQ DI, 8(SP)
	MOVL $12, DI
	MOVL DI, 16(SP)
	CALL write(SB)
	RET