.file "20000412-6.c" .globl buf .data .align 2 .type buf, @object .size buf, 10 buf: .word 1 .word 4 .word 16 .word 64 .word 256 .text .align 2 .globl main .type main, @function main: link.w %a6,#0 pea buf+6 pea buf pea 512.w jbsr bug lea (12,%sp),%sp cmp.l #491,%d0 jbeq .L2 jbsr abort .align 2 .L2: clr.l -(%sp) jbsr exit nop .size main, .-main .align 2 .globl bug .type bug, @function bug: link.w %a6,#0 move.l 16(%a6),%d1 move.w 10(%a6),%d0 move.l 12(%a6),%a0 cmp.l %a0,%d1 jbls .L10 .align 2 .L8: sub.w (%a0)+,%d0 cmp.l %a0,%d1 jbhi .L8 .L10: and.l #0xFFFF,%d0 unlk %a6 rts .size bug, .-bug .ident "GCC: (GNU) 3.3.2"