Author Topic: HELP REGISTOR  (Read 15576 times)

nobody

  • Guest
HELP REGISTOR
« on: November 07, 2006, 07:11:33 PM »
Suppose three values (x,y and Z) are stored in a machine’s memory, describe the sequence of events (loading registers from  memory, saving values in memory, and so on) that lead to the computation of x + y + z. How about (2x) + Y?

nobody

  • Guest
Re: HELP REGISTOR
« Reply #1 on: November 12, 2006, 09:07:17 PM »
Well, in C it would look something like this...

X = &you;
Y = &me;
Z = 250.00 * h;

Y->pocket += Z;
X->pocket -= Z;
X->answer = Y->answer;

Capiche?