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).
- Comment on the possible instruction formats for this instruction. Additionally, propose a new format. Suggest suitable bit patterns for the opcodes. Explain with examples.
- 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
Get step-by-step solutions from verified subject matter experts
