Question: Note: Answers this question by using MSP430 Assembly Question 1: Opcode Design Assume that an engineer wants to add division instruction support to MSP430 instruction

Note: Answers this question by using MSP430 Assembly

Question 1: Opcode Design

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

  1. Comment on the possible instruction formats for this instruction. Additionally, propose a new format. Suggest suitable bit patterns for the opcodes. Explain with examples.
  2. Comment on execution clock cycles for desired operations considering all possible addressing modes. Explain step by step. Give examples.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!