Answered step by step
Verified Expert Solution
Question
1 Approved Answer
OBJECTIVE The objective of this experiment is to learn: 1. How to address overflow problem while doing signed number arithmetic operations in assembly language. 2.
OBJECTIVE The objective of this experiment is to learn: 1. How to address overflow problem while doing signed number arithmetic operations in assembly language. 2. How to use SI and DI registers to point to data in the extra and data segments. LABORATORY 1. Problem 1 Write an assembly program in TASM to perform following operations: a) Find the lowest value occurred while summing the sequence of numbers which is located below array. .DATA SIGN_DATA DB +25, -78, -95, +22, -69, +25, -85, +47,-39 LOWEST DB? b) Find the average value of the same array. Note that you do not have to handle any overflow that may occur (result of the sum is in range [-255, +255) thus you do not have to use CBW/CWD). .DATA SIGN_DATA DB +25, -78, -95, +22, -69, +25, -85, +47, -39 SUM DB? AVERAGE DB ? c) Let's assume that we add-99 at the end of this array. Now, write an assembly program or extend your previous assembly program so that you can compute sum of the below array. .DATA SIGN_DATA DB +25, -78, -95, +22, -69, +25, -85, +47, -39,-99 SUM DW? Hint: CBW/CWD instructions
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