EECS 203 Mailing List
RE: HW 6

RE: HW 6

From: Byron Cheng <Byron_at_avoiding.spam>
Date: Thu May 22 2008 - 17:35:17 CDT

Are we allowed to write over the itinally defined registers ABC? I don't
think I have enough registers otherwise.

Byron Cheng
-----Original Message-----
[] On Behalf Of Robert Dick
Sent: Thursday, May 22, 2008 10:47 AM
Subject: Re: HW 6

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 17:35:17 2008

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