Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please provide assembily code using the Star 1 2 systemConcepts: Using the S 1 2 arithmetic operations Objectives: Use the S 1 2 arithmetic operations

Please provide assembily code using the Star 12 systemConcepts:
Using the S12 arithmetic operations
Objectives:
Use the S12 arithmetic operations (such as adds, subtracts, multiplies, and divides) to
implement mathematical functions using integers.Assignment:
Write a program in assembly that calculates the Winsorized mean ?1 of an array of two-byte
signed integers. Instead of using percentages to determine how many values are replaced, this
simplified program will only replace 1 element at each end. This means that when calculating
the Winsorized mean, the least value is replaced with the second least value, and the greatest
value is replaced with the second greatest value.
Your program must meet the following requirements.
The program must calculate the Winsorized mean of an array of two-byte signed
integers in which one element from the minimum and maximum are replaced. The input
array is guaranteed to contain at least 3 elements.
The input array contains 2-byte signed integers, and the address of this array is supplied
in $3000.
The two-byte unsigned length of the array is supplied in $3002.
The two-byte Winsorized mean must be output to locations $3010 and $3011.
The program must follow appropriate practices: The inputs must not be modified, it
must be usefully commented, it must make appropriate use of assembly directives, etc.
You may assume the inputs are valid, i.e. the array doesn't overlap the input or output
locations, it contains valid data, etc.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions