Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Optimizing Data Collection In Warzones

Authors: Aaget Aamber

1st Edition

B0CQRRFP5F, 979-8869065902

More Books

Students also viewed these Databases questions

Question

3. Comment on how diversity and equality should be managed.

Answered: 1 week ago

Question

describe the legislation that addresses workplace equality

Answered: 1 week ago