top of page

The Ember CPU — Initial Design Part 3: Opcodes, Operands, and Instruction Encoding

Writer's picture: Tom GambillTom Gambill

Updated: 4 days ago


Assembly computer source code opcodes
Assembly Source Code

We recently discussed some instruction types and register options; this time, we will dig into some math and look at how we might encode Ember assembly instructions into binary to run on the CPU.


Encoding

CPU Operation Codes, or OpCodes, are the numerical values that are represented by the (more-or-less) human-readable names of the instructions that you see in an assembly text file. Parameters for those instructions are known as Operands, and Encoding is how we convert the assembly source into binary machine code that the CPU can execute.


Recent Posts

See All

Comments


Post: Blog2_Post
  • Mastodon
  • Facebook
  • LinkedIn

©2021 by IARI Ventures

bottom of page