github.com/afumu/libc@v0.0.6/musl/src/unistd/sh/pipe.s (about) 1 .global pipe 2 .type pipe, @function 3 pipe: 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 21 1: mov.l r0, @(0,r4) 22 mov.l r1, @(4,r4) 23 rts 24 mov #0, r0 25 26 .align 2 27 L1: .long __syscall_ret@PLT-(1b-.)