Why are registers needed (why not only use memory)?

Viewed 4767

I am just starting to learn Assembly (I have worked with before).

I am wondering why do we need to use registers in addition to using memory, why not just use memory?

I guess the most obvious reason is that doing calculations in a register is much faster than doing calculations in memory. But is this the only reason?

0 Answers
Related