Write and assemble a program to add all the single digits

Assignment Help Other Engineering
Reference no: EM131683922

Assembler and Simulator

OBJECTIVES:

- To examine and use an 8051 assembler.
- To examine and use an 8051 simulator.

ACTIVITY 1
Write and assemble a program to move value 99H to register A. Then from register A move it to all registers R0 - R7. Use the simulator to single-step the program and examine the registers.

ACTIVITY 2
Write and assemble a program to add all the single digits of your ID number and save the result in R2. Pick 7 random numbers (all single digit) if you do not want to use your ID number. Then use the simulator to single-step the program and examine the registers.

1. Indicate the size (8- or 16-bit) of each of the following registers.

            PC =              A=                        B=

            R0=               R1=                       R2=            R7=

2. For Question 1, indicate the largest value (in decimal) that each register can contain.

            PC =              A=                                    B=

            R0=                   R1=                R2=                     R7=

3. For Question 1, indicate the largest value (in hex) that each register can contain.

PC = FFFFH A=FFH B= FFH


R0= FFH R1= FFH R2= FFH R7=FFH

4. Who generates each of the following files and what is the use of each.

.asm
.lst

.obj

.abs

.hex

Reference no: EM131683922

Questions Cloud

Travel to the planet mars to be a member of a colony there : You are planning to travel to the planet Mars to be a member of a colony there. The colony needs to be self-sufficient for production of food
Explain the importance of a project charter : Explain to your boss the importance of a project charter and what could happen if you decided to proceed ahead without a charter.
How the media example or story is a reflection of cultural : Why are some things valuable in one culture and not in another? Reflect on your personal experience of transitioning to adulthood.
Analyze the prioritizing process at d d williamson : Analyze the prioritizing process at D. D. Williamson. Suggest two recommendations to improve the prioritizing process. Use at least four quality resources.
Write and assemble a program to add all the single digits : 8051 Assembler and Simulator - Write and assemble a program to add all the single digits of your ID number and save the result in R2. Pick 7 random numbers
Compute the mean weekly earnings of female workers : Test at the 2.5% significance level whether the mean weekly earnings of female workers who are not union members are less than those of female workers.
What were the main results for health outcomes in parents : What were the main results for health outcomes in parents and/or children, Name at least one criticism of the study
Review eriksons stage of identity : Is identity development ever complete? Why or why not? What are the signs that someone has reached identity achievement?
Examine the impact of the recession on dining out : An economist was interested in studying the impact of the recession on dining out, including drive-thru meals at fast food restaurants.

Reviews

Write a Review

Other Engineering Questions & Answers

  Characterization technology for nanomaterials

Calculate the reciprocal lattice of the body-centred cubic and Show that the reciprocal of the face-centred cubic (fcc) structure is itself a bcc structure.

  Calculate the gasoline savings

How much gasoline do vehicles with the following fuel efficiencies consume in one year? Calculate the gasoline savings, in gallons per year, created by the following two options. Show all your work, and draw boxes around your answers.

  Design and modelling of adsorption chromatography

Design and modelling of adsorption chromatography based on isotherm data

  Application of mechatronics engineering

Write an essay on Application of Mechatronics Engineering

  Growth chracteristics of the organism

To examine the relationship between fermenter design and operating conditions, oxygen transfer capability and microbial growth.

  Block diagram, system performance and responses

Questions based on Block Diagram, System Performance and Responses.

  Explain the difference in a technical performance measure

good understanding of Mil-Std-499 and Mil-Std-499A

  Electrode impedances

How did this procedure affect the signal observed from the electrode and the electrode impedances?

  Write a report on environmental companies

Write a report on environmental companies

  Scanning electron microscopy

Prepare a schematic diagram below of the major parts of the SEM

  Design a pumping and piping system

creating the pumping and piping system to supply cool water to the condenser

  A repulsive potential energy should be a positive one

Using the data provided on the webvista site in the file marked vdw.txt, try to develop a mathematical equation for the vdW potential we discussed in class, U(x), that best fits the data

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