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
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started