NASM - The Netwide Assembler

NASM Forum => Programming with NASM => Topic started by: nobody on November 07, 2006, 07:11:33 PM

Title: HELP REGISTOR
Post by: nobody 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?
Title: Re: HELP REGISTOR
Post by: nobody 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?