Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The following code fragment adds two 32-bit signed (two's complement) numbers, numberl and number2, and leaves the result in number2, number: .word 0x8C50, 0x0012 number2:

image text in transcribed

The following code fragment adds two 32-bit signed (two's complement) numbers, numberl and number2, and leaves the result in number2, number: .word 0x8C50, 0x0012 number2: .word 0x21B7, 0x010A mov number1, wO add number2 mov number1+2,wO addc number2+2 Please answer the following: (a) How many bytes of program memory are occupied by this code fragment? (b) After the addition is completed what values do you expect in the each of the bytes of numberi and of number2? List the 4 bytes for each (in the order low to high) and the corresponding value of each byte. (c) What are the values of the DC, N, OV, Z, and C bits in the status register i. Immediately after the instruction add executes ii. Immediately after the instruction addc executes. (d) What registers have changed after the code fragment given above executes? (List the registers, including file registers (data memory locations), you do not need to give their values)

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

Step: 3

blur-text-image

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

Creating A Database In Filemaker Pro Visual QuickProject Guide

Authors: Steven A. Schwartz

1st Edition

0321321219, 978-0321321213

More Books

Students also viewed these Databases questions