• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1.global pipe
2.type   pipe, @function
3pipe:
4	mov    #42, r3
5	trapa  #31
6
7	! work around hardware bug
8	or     r0, r0
9	or     r0, r0
10	or     r0, r0
11	or     r0, r0
12	or     r0, r0
13
14	cmp/pz r0
15	bt     1f
16
17	mov.l  L1, r1
18	braf   r1
19	 mov   r0, r4
20
211:	mov.l  r0, @(0,r4)
22	mov.l  r1, @(4,r4)
23	rts
24	 mov   #0, r0
25
26.align 2
27L1:	.long __syscall_ret@PLT-(1b-.)
28