Complete the following program to store the listed data

Assignment Help Electrical Engineering
Reference no: EM13712392

1.Complete the following program to store the listed data into the RAM locations starting at $3000 using the stack pointer and the PUSH command. Use memory dump (md) command to see the data stored at the memory locations and include in your report.

Data: $55AA, $6811, $6CA0, $1ABC, $5AB3

ORG $2000
LDS #$3000
LDX #$55AA
PSHX
LDX
.
.
PULX
SWI

Add comments for each assembly line in your report. Include a screen shot of data stored. You can use md 2FF0 to see data stored in memory. Why?
Why index register X has been used to load data and not ACCA?
Does the high byte store first or the low byte?
What data index register X will contain at the end of the program?
2.

Write a program that finds the square of a number listed below in a subroutine and stores the results into the memory locations $2100-$2104. Complete the following program and use memory dump (md) to see the result obtained. Do not forget to add comments to the each program line and explain its operation.

Hint: Multiplying a number by itself will make it square.

Numbers: $0A, $0C, $0B, $0F

ORG $2000
LDS #$3000
LDX #$55AA
PSHX
LDX
.
.
PULX
SWI


SQUARE:

.

TAB

MUL

.

RTS
3.
Write a program to send the following listed data stored at memory locations $2100-$210F to a subroutine that adds them up. Store the result at memory location $21FF. Use "md" to see the result and include in your report.

Data (numbers are in decimal): 10,15,34,4,5,6,9,23,38,2,11,14,15,9,7

(Hint: When a subroutine is called the two-byte return address is pushed into stack. If you use stack in the subroutine you need to consider these two bytes. Read and store them somewhere before using stack, store return address into the stack right before RET instruction in the subroutine.

Reference no: EM13712392

Questions Cloud

What is the period of oscillation for this mass in seconds : A 120 gram mass is hung from a vertical spring with a spring constant of 14 N/m. It is pulled down 5 cm and let go. What is the period of oscillation for this mass in seconds
What is the spring constant for given spring : A spring is stretched such that it becomes 15 cm (0.15 m) longer with a force of 8 Newton's. What is the spring constant for this spring
Determine the minimum possible mass flow rate of steam : The power cycle shown below operates under steady conditions and develops a net power output of 1.6 MW. The power cycle receives energy through one heat exchanger (heat exchanger 1) from steam condensing at a constant pressure of 225 kPa. The steam e..
Estimate the dielectric constant of the material : Three parallel plate capacitors are connected in series. These capacitors have identical geometries. However, they are filled with three different materials. Determine the dielectric constant of the material
Complete the following program to store the listed data : 1.Complete the following program to store the listed data into the RAM locations starting at $3000 using the stack pointer and the PUSH command. Use memory dump (md) command to see the data stored at the memory locations and include in your rep..
How much charge moves during this time : A defibrillator is used during a heart attack to restore the heart to its normal beating pattern. How much charge moves during this time
What is the acceleration of the hanging mass : A block of mass m1 = 37 kg on a horizontal surface is connected to a mass m2 = 17.6 kg that hangs vertically. What is the acceleration of the hanging mass
What highly volatile, water-insoluble chemical competes : What highly volatile, water-insoluble chemical competes with naphthalene as a raw material needed to manufacture the intermediate phthalic anhydride used in the production of certain resins and polyesters?
Sheet of steel with a modulus of rigidity : You are given a sheet of steel with a modulus of rigidity is G = 80.8 Gpa, a length L = 1 m, width w = 100 mm, and thickness t = 1 mm. You are asked to design a shaft cross-section by shaping the given steel sheet. The machine that is available to yo..

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Design cell of universal shift register to specification

Design the basic cell of a universal shift register to the following specifications. The internal storage elements will bepositive edge-triggered D flip-flops. Besides the clock, theshifter stage has two external control inputs, S0 andS1, and thre..

  What does mean by term slip of three phase induction motor

what do u mean by term slip of three phase induction motor  calculate the slip of 4-pole induction motor running at 1470 rpm while bieng connected to a 50 hz three phase source

  What are the advantages and disadvantages of using plds

what are the advantages and disadvantages of using PLDs, including FPGAs, as compared to using discreet logic-integrated circuit chips

  Determine reasonable minimum sampling rate with small error

A continuous-time signal x(t)=tri((t-1)/2) is sampled at three rates: 10, 2, and 1 Hz. Sketch the resulting sampled signals. Because x(t) is timelimited, its bandwidth is infinite. However, most of its energy is concentrated in a small band.

  Design a decade counter which counts in the sequence

design a decade counter which counts in the sequence: 0000, 0001, 0010, 0011, 0100, 0101, 0110, 0111, 1000, 1001, 0000 draw a complete state diagram for the counter of (b) showing what happens when the counter is started in each of the unused states

  Calculate list all possible connections for a dc generator

A 3kw, 120V, 2400 rpm shunt motor has an armature resistance of 0.4 ohms and a shunt field resistance of 160 ohms. The motor operates at full load. The no load current is 2A. If an external resistance of 2.5 ohms is insertions in the armature circ..

  By what percentage can the energy consumption be reduced

Suppose that the cost of electrical energy is $0.12 per kilowatt hour and that your electric bill for 30 days is $60 (power usage only, not including other charges or taxes) Assume that the power delivered is constant over the entire 30 days.

  Compare the area-delay and power of the adders

Design a 16 bit adder using both the ripple carry and CLA methods. Use 4-bit CLA blocks for the carry-lookahead design. Use only two-input logic gates in your design. Simulate the design using LogiSim at the logic gate level.

  Find the capacitance and inductance of the matching network

The amplifier is connected to the handset antenna which has an impedance of 35 + j10 at one unspecified operating frequency. Find the inductive reactance and capacitive reactance needed to match the transmitter output to the antenna

  Calculate the noise specification

1. Calculate SNR(dB) given a noise specification of 680nV

  Calculate r-l and the inductor current i

The instantaneous power p into a one port containing resistors and inductors has maximum value 100(1+sqrt2) W and minimum value 100(1-sqrt2)W. (note that instantaneous power is measured in W, and it contains various contributions

  Find an expression for load current up to fifth harmonic

A single phase full bridge inverter feds power at 50Hz to RLC load with r=5 ohms , l=0.3H and C=50μF. The dc input voltage is 220volts. (a) Find an expression for load current up to fifth harmonic

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