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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started