# here is a sample program main: # label main all alone and $3 $0 $0; # clear r3 lhi $3 counter; # get upper address of counter rotr $3 $3 8; # move it to MSB llo $3 counter; # lower portion in LSB ld $4 0($3); # load the initial value into r4 loop: bz $4 done; # test or $2 $3 $3; # move to arg register jr $1 2($3); # call dummy addi $3 $3 -1; # decrement the counter st $4 4($3); jmp loop; done: jmp done;# stuck here llo $13 258; lhi $13 258; counter:.data 61; dummy: jr $0 2($1); # just return jmp foo; .data -3;