Examine the flag bits of the psw

Assignment Help Other Engineering
Reference no: EM131683944

Examining the CY flag and the stack

OBJECTIVES:

- To examine the flag bits of the PSW.
- To examine the stack.

ACTIVITY 1
Write and assemble a program to add the following data and then use the simulator to examine the CY flag.

92H, 23H, 66H, 87H, F5H

ACTIVITY 2
Write and assemble a program to load values into each of registers R0 - R4 and then push each of these registers onto the stack. Single-step the program, and examine the stack and the SP register after the execution of each instruction.

 

ACTIVITY 3

Write and assemble a program to:
(a) Set SP = 0D,
(b) Put a different value in each of RAM locations 0D, 0C, 0B, 0A, 09, and 08,
(c) POP each stack location into registers R0 - R4.

Use the simulator to single-step and examine the registers, the stack, and the stack pointer.

1. Find the value of the CY flag after the execution of the following code.

            (a)        MOV   A,#85H 

                        ADD   A,#92H

            (b)        MOV   A,#15H 

                        ADD   A,#72H

            (c)        MOV   A,#0F5H

                        ADD   A,#52H 

            (d)       MOV A,#0FF

                       INC A

2. Upon reset, what is the value in the SP register?

3. Upon pushing data onto the stack, the SP register is _____________ (decremented, incremented).

4. Upon popping data from the stack, the SP register is ___________ (decremented, incremented).

5. Can you change the value of the SP register? If yes, explain why you would want. A SP is a small register that stores the addresses of the program request in a stack, which stores data from the top down. The most recently request always takes from the top.

6. The stack uses the same area of RAM as bank __4____.

Reference no: EM131683944

Questions Cloud

What does the us-epa consider to be hazardous waste : What does the US-EPA consider to be hazardous waste, What are the ethical issues surrounding the disposal of hazardouswaste
Estimate difference between the two population proportions : The management of a supermarket chain wanted to investigate if the percentages of men and women who prefer to buy national brand products over the store brand.
What developmental challenges does the character face : Development Depicted As a group, select a television show. Identify key characters and development-related issues depicted within the show.
T-dependent and t-independent b cell activation : Why is it important to have both T-dependent and T-independent B cell activation? Give an example of an antigen that would stimulate a T-independent activation.
Examine the flag bits of the psw : Examining the CY flag and the stack - Write and assemble a program to load values into each of registers R0 - R4 and then push each of these registers
Development for promoting physical : Why is it important for social workers to understand infant development for promoting physical and health outcomes for children?
Find the percentages of men and women who play the lottery : The lottery commissioner's office in a state wanted to find if the percentages of men and women who play the lottery often are different.
Discuss government agency certifying products as organic : What are your thoughts on a government agency "certifying" products as organic which can potentially contain items from a list of synthetic substances!
Terms of no of protons gained or lost : How can you determine if a molecule is reduced or oxidized in terms of no of protons gained or lost?

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