Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ASSEMBLY Problem #4 (25 points) MSP430 Instructions Consider the following instructions given in the table below. For each instruction determine changes in registers after its

ASSEMBLY
image text in transcribed
Problem #4 (25 points) MSP430 Instructions Consider the following instructions given in the table below. For each instruction determine changes in registers after its execution. Fill in the empty cells in the table. Initial value of registers R2, R5, and R7 is as follows: R2-0x0007 (Status register), R6 0xAA22, R7-0x21B0. Assume the starting conditions are the same for each instruction in the table (i.e. always start from the initial conditions in registers). Note: Format of the register R2 is shown below. For detailed description of the instructions use the 4xx family user guide at http://www.ece.uah.edul-milenkapage/data/cpe 323/Documents/slau056j-4xx-UG.pdf Instruction R7-0x???? VNZC ADD.B R6, R7 0x00D2 ADD R6, R7 ADDC R6, R7 SUB.B R6, R7 SUBC R6, R7 CMP.B R6, R7 CMP R6, R7 BIT R6, R7 BIC R6, R7 BIS R6, R7 AND R6, R7 SWPB R7 RRC.B R7 RRA R7 Problem #4 (25 points) MSP430 Instructions Consider the following instructions given in the table below. For each instruction determine changes in registers after its execution. Fill in the empty cells in the table. Initial value of registers R2, R5, and R7 is as follows: R2-0x0007 (Status register), R6 0xAA22, R7-0x21B0. Assume the starting conditions are the same for each instruction in the table (i.e. always start from the initial conditions in registers). Note: Format of the register R2 is shown below. For detailed description of the instructions use the 4xx family user guide at http://www.ece.uah.edul-milenkapage/data/cpe 323/Documents/slau056j-4xx-UG.pdf Instruction R7-0x???? VNZC ADD.B R6, R7 0x00D2 ADD R6, R7 ADDC R6, R7 SUB.B R6, R7 SUBC R6, R7 CMP.B R6, R7 CMP R6, R7 BIT R6, R7 BIC R6, R7 BIS R6, R7 AND R6, R7 SWPB R7 RRC.B R7 RRA R7

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data Concepts, Theories, And Applications

Authors: Shui Yu, Song Guo

1st Edition

3319277634, 9783319277639

Students also viewed these Databases questions

Question

Name two types of tax traps and give an example of each.

Answered: 1 week ago

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago