Program to send the listed data stored at memory locations

Assignment Help Electrical Engineering
Reference no: EM13720027

Lab Objective

- Using the stack to store data
- Writing programs using subroutines
- Parameter passing using the stack

Procedure:

Part I: Using the stack to store data

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 lab report.

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

ORG   

$2000

LDS 

#$3000

LDX

#$55AA

PSHX  

 

LDX 

 

.

 

.

 

PULX

 

SWI

 

  1. 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?
  2. Why index register X has been used to load data and not ACCA?
  3. Does the high byte store first or the low byte?
  4. What data index register X will contain at the end of the program?

Part II: Subroutines

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. You can also get some idea from the program on page 117 of the textbook.

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

ORG   

$2000

LDS 

#$3000

LDX

#$55AA

PSHX  

 

LDX 

 

.

 

.

 

PULX

 

SWI

 

 

SQUARE:

.

TAB

MUL

.

RTS

Part III: Parameter passing using the stack

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

Do not forget to include a screen shot of the program with zero compilation error and load to the board successfully.

Reference no: EM13720027

Questions Cloud

Assignment-goal write-up : A number of years have passed since the writing of The Goal. Since then, developments in both technology and operations management theory have changed the toolset that is available to a plant manager like Alex Rogo (e.g.; lean, six sigma, the inte..
What is the net saving or loss and the benefits : Calculate saving for all categories in yr 2,3,and 4 taking yrs 1 as a based also total incremental saving from higher employee retention for all personnel categories - what is the net saving or loss and the benefits/cost ratio
Case study- phionia''s finicky feline gourmet cat dinners : Mini-case study- Phionia's finicky feline gourmet cat dinners, Sales budget in dollars, Production budget in units
Gender inequality in the workplace-sexual harassment : Use and add the real life situation provided below to write this paper. Provide examples to explain the behaviors, and use researched material to support your reasoning.
Program to send the listed data stored at memory locations : Write a program to send the listed data stored at memory locations $2100-$210F to a subroutine that adds them up. Store the result at memory location
Assume the van der Waals equation of state holds : Assume the van der Waals equation of state holds for the n-propane molecule (C3H8). Find values for the constants a and b (online) and use these to calculate the density in (g ml^-1) at a temperature of 1000K and a pressure of 10 atm. The equation or..
Strategy for kodak-the rise and fall of eastman kodak : Review Case study "The rise and fall of Eastman Kodak: Will it survive beyond 2012?" located in the textbook. Assume that you have been hired by Kodak as a business consultant to recommend a new corporate-level strategy for the company to improve ..
Particular method to handle stress : Discuss on what basis should the organization choose a particular method to handle stress?
Implement a state-space search : You will implement a state-space search that will find a solution to the sixteenpuzzle. For this program, in addition to the state-space search control, you will need to implement at least two other classes

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Microelectronicscircuitanalysisanddesign can you solve the

can you solve the problems attached not all only the below numbers ltbrgt ltbrgtq 1 2 3 4 5 7 8 9 only a 10 ltbrgt

  Explain what is the framework or reference model

1. There are 4 main classes of network topologies, what are they 2. In communications over a network, protocols are required. What is the framework or reference model that makes this possible

  Find the characteristics equation for the odes

Find the characteristics equation and the corresponding roots for the following ODEs and identify its case a) y" + 6Y' + 9y=0 b) 10y" + 18y' +5.6y=0 c) 10y" + 50y' + 65y =0 Slove the intial value problem a) problem 2a) with y(0)=2 and y'(0)=-5

  Calculate the proper amount of voltage would need to achieve

Suppose you have a 2 kW electric heater rated for 220 volt operation, which you intend to operate at a reduced power dissipation of 1kW. Calculate the proper amount of voltage you would need to achieve this reduced power dissipation

  What happens to the size of the depletion region and why

If the temperature remains constant and the external currentlI increases, what happens to the size of the depletion region Why

  What is the rate of acceleration produced by photon momentum

The intensity of solar radiation is 1366.1 W/m2 in space. This light strikes a 10 m2 solar panel of a satellite. Assuming that all the light is absorbed, how much force (momentum per second) is transferred

  Claculate the network real and reactive powers

A 150 MVA, 24 kV, 125% three-phase synchronous generator supplies a large network. The network voltage is 27 kV. The generator operates with an induced voltage, which is twice the rated line-to-neutral voltage.

  Describe how an inductor is practically consumed

Describe how an inductor is practically consumed and what are the problems with practical inductors

  Find the magnitude of the phase current in the load

a) A delta-connected three-phase source has a phase voltage of 220 V. It feeds a delta-connected load consisting of three identical impedances of 10/42° O each. Find the magnitude of the phase current in the load, the line current

  State whether or not system is linear and time invariant

For each of the following systems with input x(t) and output y(t), state whether or not the system is (i) Linear and (ii) Time Invariant. Note that x(t) could be any complex valued signal.  (a) y(t) = a^2 x(t), where a is a complex number.

  Find the value of the total circuit complex impedance

An input signal of 10V at 0o and a frequency of 1592 Hz is applied to a series RLC circuit with resistor R = 100 ohm, inductor L = 20 mH, and capacitor C = 0.5 F. The value of the total circuit complex impedance is.

  Show the optimal expected number of packets

Note that after a collision, the expected numbers are slightly different in two systems, but the difference is unimportant since collisions are rare.

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