NASM - The Netwide Assembler
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Calendar
Login
Register
NASM - The Netwide Assembler
»
NASM Forum
»
Programming with NASM
»
HELP REGISTOR
« previous
next »
Print
Pages: [
1
]
Author
Topic: HELP REGISTOR (Read 17201 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?
Logged
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?
Logged
Print
Pages: [
1
]
« previous
next »
NASM - The Netwide Assembler
»
NASM Forum
»
Programming with NASM
»
HELP REGISTOR