From WikiChip
Difference between revisions of "zero register"

(zero reg)
(No difference)

Revision as of 02:03, 12 December 2017

A zero register refers to a special-purpose register that is hardwired to the integer constant 0.

Overview

The zero register is a special register that is hard-wired to the integer value 0. This register is found in many RISC instruction set architectures such as MIPS and RISC-V. On those architectures writing to that register is always discarded and reading its value will always result in a 0 being read.