Question: Give a binary encoding of this instruction set, so that each possible instruction has a unique encoding as a string of bits. Assume addresses require
Give a binary encoding of this instruction set, so that each possible instruction has a unique encoding as a string of bits. Assume addresses require 16 bits. Choose an encoding that is simple but not unnecessarily wasteful of space. Different instructions need not be the same length, as long as the machine-language programs an unambiguous. Show th eformat you use for each instruction. Show the translation of this assembly-language program into your machine language: load width, r1 load n, r2 mul r1, r2, r1 load offset, r2 add r2, r1, r1 store r1, resut
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
