Question: CS 2800-60 Computer/Assembler Language Spring 2018 Homework Assignment 7 Due April 4, 2018 All solutions must have both code and data segments Write a sequence

CS 2800-60 Computer/Assembler Language Spring 2018

Homework Assignment 7

Due April 4, 2018

All solutions must have both code and data segments

Write a sequence of assembly language instructions to subtract each entry of an array B of five twos complement 16-bit binary integers from the corresponding entry of an array A of five twos complement 16-bit binary integers and construct a third array C of twos complement 16-bit binary integers. i.e. C[i] = A[i] - B[i].

Use the following data for the arrays A and B.

A: 10, -15, 20, 4, -5

B: 25, -5, -30, 6, 10

2. Rewrite the assembly language instructions of question 1 for DEBUG environment.

3. Write a sequence of assembly language instructions to subtract 5 to each zero or positive entry and add 3 from each negative entry in an array A of 10 word two's complement binary integers.

Use the following data for array A: 6, 10, 25, -5, -30, 4, -5, 10, -15, 0

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!