L
L
LoliDeveloper2021-10-17 12:49:57
assembler
LoliDeveloper, 2021-10-17 12:49:57

Do registers have addresses like memory?

There are generally two questions:
1) Is it possible to somehow transfer a link to the register?
2) Why not?
Well, so that you can work with it as with an array of bytes of size 4 (in the case of 32 bits).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2021-10-17
@LoliDeveloper

Do registers have addresses like memory?

There are addresses (and these addresses are encoded in instructions that access registers directly), but usually not like memory. Whether registers have addresses like memory depends on the architecture. In addition to the mentioned AVR, for example, 8051 has such a feature .
Why not?

Because memory access and register access are arranged very differently in serious processors.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question