
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.
Comments