.file "loop-12.c" .text .align 2 .type is_end_of_statement, @function is_end_of_statement: link.w %a6,#0 clr.l %d0 move.l p,%a0 move.b (%a0),%d1 cmp.b #10,%d1 jbeq .L3 cmp.b #59,%d1 jbeq .L3 cmp.b #33,%d1 jbne .L2 .align 2 .L3: moveq.l #1,%d0 .L2: unlk %a6 rts .size is_end_of_statement, .-is_end_of_statement .align 2 .globl foo .type foo, @function foo: link.w %a6,#0 move.l %a2,-(%sp) lea is_end_of_statement,%a2 jbra .L5 .align 2 .L8: addq.l #1,p .L5: jbsr (%a2) tst.l %d0 jbeq .L8 move.l -4(%a6),%a2 unlk %a6 rts .size foo, .-foo .section .rodata.str1.1,"aMS",@progbits,1 .LC0: .string "abc\n" .text .align 2 .globl main .type main, @function main: link.w %a6,#0 move.l #.LC0,p jbsr foo clr.l %d0 unlk %a6 rts .size main, .-main .comm p,4,2 .ident "GCC: (GNU) 3.3.2"