Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Assume that an engineer wants to add division instruction support to MSP430 instruction set. The desired usage of the new instruction is as follows:
Assume that an engineer wants to add division instruction support to MSP430 instruction set. The desired usage of the new instruction is as follows: div.w , which executes the following operations: dst = dst / src dst_next = dst % src (% is modulo operator) where dst_next (depending on the addressing mode) can be the next memory location (e.g. if dst = 0x200, then dst_next = 0x0202 ) or the next register (e.g. if dst = R6, then dst_next = R7). a) Comment on the possible instruction formats for this instruction. Additionally, propose a new format. Suggest suitable bit patterns for the opcodes. Explain with examples. b) Comment on execution clock cycles for desired operations considering all possible addressing modes. Explain step by step. Give examples.
Step by Step Solution
★★★★★
3.47 Rating (154 Votes )
There are 3 Steps involved in it
Step: 1
a Instruction Formats and Opcodes The instruction format for the divw instruction can be designed in various ways depending on the desired tradeoff between instruction size instruction encoding comple...Get Instant Access to Expert-Tailored 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