EECS 203 Mailing List
Re: HW 6


Re: HW 6

From: Robert Dick <dickrp_at_avoiding.spam>
Date: Thu May 22 2008 - 10:46:35 CDT

Jeremy Meisel:
> I am having trouble writing the loop for number 5. I can increment, but I
> am unclear on how to write the code to do it n times. I am guessing it
> involves using blz and/or bz but I am unclear as to their syntax and how
> they work. Are Rt and Rc specific registers, or can they be any register?
> What does it mean for Rc < 0, do the registers hold signed numbers?
>
> Any help would be appreciated.

Jeremy stopped by to talk about this one. I suggested setting a register
to -count, incrementing it each time through the loop, and using the BLZ
instruction to get back to the top of the loop. You can add a label to the
code and move the label into a register when using the BLZ instruction. A
label can be treated just like a number.

-Robert Dick-
Received on Thu May 22 10:46:35 2008

This archive was generated by hypermail 2.1.8 : Sat Aug 23 2008 - 21:08:11 CDT