top of page

The Ember CPU — Initial Design Part 2: Registers

Writer's picture: Tom GambillTom Gambill

Memory chips on a circuit board
Photo by Michael Dziedzic on Unsplash

Now that we have the basic design philosophy and some fundamental requirements for our new CPU, we should consider the types and number of registers we need. First, let’s look at how registers are used, their benefits, and some limitations due to hardware and instruction architecture.


One of the primary uses of internal registers in a CPU is to hold values for operations that are being actively computed or worked on. Registers can represent CPU settings, flags used in logic operations, and loop counters so the program knows which item in a loop it is working on and when to stop the current algorithm.


Comments


Post: Blog2_Post
  • Mastodon
  • Facebook
  • LinkedIn

©2021 by IARI Ventures

bottom of page