Determine sum of the largest two numbers and store its value

Assignment Help Electrical Engineering
Reference no: EM13256540

Assume that the memory locations M[$20], M[$21] and M[$22]. Write a 68HC11 assembly language program (with lots of comments) that will determine the sum of the largest two numbers and store its value in M[$23].

Example: If memory locations contain the following:

M[$20] = $10

M[$21] = $FF

M[$22] = $20

Then your program should write the following in memory:

M[$23] = $30 ; the largest sum is M[$20] + M[$22] = $30

Your program should work for any numbers that are stored in M[$20], M[$21], and M[$23].

Reference no: EM13256540

Questions Cloud

Find the shear modulus of the wood : A plank 2.00 cm thick and 15.1 cm wide is firmly attached to the railing of a ship by clamps so that the rest of the board extends 2.00 m horizontally over the sea below. find the shear modulus of the wood
Compute the average collection period : Sanders' Prime Time Company has annual credit sales of $2,592,000 and accounts receivable of $604,800. Compute the average collection period. (Use 360 days in a year.)
What explains this large annual temperature range : Were latitude the only control of temperatures, the isotherms would run straight across the maps from east to west. Describe one region of the world where this hypothetical isotherm pattern is actually observed.
The dehydration occurred and an optically inactive alkene b : Despite its apparent unsaturation, no hydrogen was absorbed on catalytic reduction over a Pd/C catalyst. On treatment of A with dilute H2SO4, dehydration occurred and an optically inactive alkene B, C11H14 was produced as the major product.
Determine sum of the largest two numbers and store its value : Assume that the memory locations M[$20], M[$21] and M[$22]. Write a 68HC11 assembly language program (with lots of comments) that will determine the sum of the largest two numbers and store its value in M[$23].
What is the expected angle of refraction in sheet : Three sheets of plastic have unknown indices of refraction. Sheet 1 is placed on top of sheet 2, and a laser beam is directed onto the sheets from above, what is the expected angle of refraction in sheet 3
Draw a circuit that can scale the voltage from the range : 1. Draw a circuit that can scale the voltage from the range of 0~200 mV to the range of 0 ~ 10V. 2. Draw a circuit that can scale the voltage from the range of -200 mV ~0 V to the range of 0 ~ 10V . 3. Draw a circuit that can scale the voltage from t..
Income division section of the income statement : Clinton and Dole had capital balances of $120,000 and $180,000 respectively at the beginning of the current fiscal year. The articles of partnership provide for salary allowances of $18,000 and $20,000 respectively,
What is the wavelength of the waves on the string : On a 7.2 m length of string, you count 5 crests and 4 troughs. What is the wavelength of the waves on the string

Reviews

Write a Review

Electrical Engineering Questions & Answers

  How the half-adder can be constructed just with nand gates

HALF-ADDER: S = XY' + X'Y , C = XY (These are the outputs) 1. From the equation given for half-adder, develop an equation for which the half-adder can be constructed just with NAND gates. Draw the circuit as per the equation obtained.

  What is the total impeadance of the combined three loads

Three loads are connected in parrallel across a 250 Vrms line. Load 1 absorbs 16 kW and 18 kVAR. Load 2 absorbs 10 kVA with a power factor of 0.6 leading. Load 3 absorbs 8 kW with a power factor of 1.

  How the gps could be used for the propagation of signals

Build a C++ code for vehicle sensing device. Code is required to embed in the device so that then it must sense the location where the vehicle is currently present. The device must be able to track the location of the vehicle for its owner

  Do specify the requirements on the adc

A calibrated RTD with ALPHA = 0.0041/°C, R = 306.5 Ohms at 20°C, and PD = 30 mW/°C will be used to measure a critical reaction temperature. Temperature must be measured between 50° and 100°C with a resolution of at least 0.1°C.

  Define a saturated npn transistor

A saturated npn transistor has a base to emitter applied voltage of 0.6V. The collector to emitter voltage is 0.2V. The collector current is 12mA

  Design an adder that computes the sum of four 8-bit numbers

Design an adder that computes the sum of four 8-bit numbers, using 8-bit carryripple adders. Use a basic 8-bit carry-ripple adder as a building block for the design.

  Find value of capacitance needed to bring current in phase

single phase motor draws 20A from a 200V, 50Hz supply with a lagging power factor of 0.8. Calculate the value of the capacitance needed to bring the current in phase with the voltage.

  Find the minimum sampling frequency of the a-d converter

our senior design team is designing a force sensor to measure a force signal and analyze the signal with a microcomputer (binary system). The analog force signal is between 10 N and 70 N and has the frequency bandwidth of DC - 1000 Hz.

  What is the total distance moved by the ball

A ball is thrown vertically upwards from a point 1.5 m above the ground, with an initial velocity of 30 m/s. In this problem, neglect the effects of air on the motion of theball, and take g = 10 m/s2. what is the total distance moved by the ball

  What is the minimum regulator input voltage

1.)An op amp requires the design equation Vout = 5Vin & 2Vref + AgVg. What is the value of Ag 2.)The voltage dropout of a voltage regulator is 1.6 V. If a 16 V output is required, what is the minimum regulator input voltage

  What if the receiver is listening to a dsb or ssb signal

A linear CW product detector local oscillator has a 500 Hz error while detecting an AM signal. What will the receiver's output sound like What if the receiver is listening to a DSB or SSB signal

  Find the output for the given input data

2) Draw the logic circuit for each of the following. For each gate, determine EVEN or ODD parity and find the  output for the given input data: a) 4-input XOR, input data=1001 b) 5-input XOR, input data-10010 c) 6-input XOR, input data=101001 d) 7-..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd