/* test1.c
a trival infinite loop counter
*/
main ( ) {
asm("\
loop:\n\
ld [%g0+0x40], %g1\n\
add %g1, 1, %g1\n\
st %g1, [%g0+0x40]\n\
ba loop\n\
nop\
");
}
/* eof */