From WikiChip
Zero Register
Revision as of 02:03, 12 December 2017 by David (talk | contribs) (zero reg)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.