Speicheradressregister (MAR):
Das Speicheradressregister (MAR) ist ein Register, das die Speicheradresse der Daten speichert, auf die zugegriffen wird oder die manipuliert wird. Es wird in Verbindung mit dem Speicherdatenregister (MDR) verwendet, um Lese- und Schreibvorgänge zwischen der CPU und dem Speicher durchzuführen. Wenn die CPU Daten von einem bestimmten Speicherort lesen oder schreiben möchte, legt sie die Adresse dieses Speicherorts im MAR ab. Der MAR sendet dann die Adresse an die Speichereinheit, die die Daten an dieser Adresse abruft oder speichert.
Der MAR ist ein wesentlicher Bestandteil der Speicherverwaltungseinheit (MMU), die für die Übersetzung virtueller Speicheradressen in physische Speicheradressen verantwortlich ist. Die MMU verwendet die MAR, um die physische Adresse der Daten zu speichern, auf die zugegriffen wird, während die MDR die Daten selbst speichert. Dadurch kann die CPU effizient auf den Speicher zugreifen, ohne komplexe Adressübersetzungsberechnungen durchführen zu müssen.
Das MAR arbeitet eng mit anderen CPU-Registern wie dem Programmzähler (PC) und dem Stapelzeiger (SP) zusammen, um die Ausführung von Anweisungen zu koordinieren und den Datenfluss zwischen CPU und Speicher zu verwalten.