sparc loop
I'm just learning sparc, but try something like this:
clr %L1 ! clear register
mov 10,%L2 ! put maximum count in
STARTLOOP0:
inc %L1 ! adds one to L1 reg
ENDLOOP0:
cmp %L1,%L2 ! compare
blt STARTLOOP0 ! if L1 < L2 go to start of loop
nop ! the command after a branch is always
! performed, so put a null op in,
! unless you want something done there
|