Write an assembly program to compute the fibonacci sequence

Assignment Help Other Engineering
Reference no: EM131268772

Advanced Digital Circuits

Lab- Introduction to Machine Language and Instruction Sets

Objective

The objective of this lab is to understand General Purpose Processors and their Instruction Sets. You will be given the source code for an Instruction Set Simulator that simulates a basic set of instructions in a fictional processor that we call MDC1. You will be required to modify the source code, extending its instruction set to include additional instructions.

Introduction

The instruction set of a processor describes the bit configurations allowed in the Instruction Register, indicating the atomic (or built-in) processor operations that the programmer may invoke. Each of these configurations forms an assembly instruction, and a sequence of these assembly instructions forms an assembly program.

Procedure

1. Decode the existing assembly program into their respective binary as well as hex code.

2. Add the following instructions to the ISS.The INC instruction adds one to the operand (using register indirect, register direct, or direct addressing modes)

a. INC @Rn // Register Indirect
b. INC Rn // Register Direct
c. INC direct // Direct
d. DEC @Rn // Register Indirect
e. DEC Rn // Register Direct
f. DEC direct // Direct

3. Rewrite the above Assembly program incorporating these new instructions.

4. Decode the assembly program and test it in the instruction set simulator.

5. Write an assembly program to compute the Fibonacci sequence for the first 10 values of the sequence and store these values into the data memory beginning with the first memory location.

6. Decode the assembly program and test it in the instruction set simulator.

Lab Report

For your lab report, please use the template provided. You must explain, in your own words, how the design of ISS, the improvements made by adding instructions, as well as the two assembly programs and binary decoding. Please include thecontents of the data and program memory for each of the assembly programs.

Attachment:- Lab_Introduction_to_Machine_Language_and_Instruction_Sets.docx

Reference no: EM131268772

Questions Cloud

Would you recommend a price increase or a price decrease : The price demand equation for home-delivered large pizzas is p=38.2 - 0.002x.- would you recommend a price increase or a price decrease? Explain.
What role does the erd play in the design process : What role does the ERD play in the design process? What is a weak entity? What is a composite entity, and when is it used? Provide examples of a weak entity and composite entity.
Budget enforcement act : What loophole in the Budget Enforcement Act of 1990 was used to pass both the bailout package for the airline industry and the Job Creation and Worker Assistance Act of 2002?
Average rate of change function : The Average Rate of Change function describes the average rate at which one quantity is changing with respect to something else changing. Give an example of an everyday average rate of change calculations. Discuss how knowing this information help..
Write an assembly program to compute the fibonacci sequence : Write an assembly program to compute the Fibonacci sequence for the first 10 values of the sequence and store these values into the data memory beginning with the first memory location.
Program to simulate the vending machine : You have invented a vending machine capable of deep frying twinkies. Write a program to simulate the vending machine. It costs $3.50 to buy a deep-fried twinkie, and the machine only takes coins in denominations of a dollar
Find the relative rate of change of household income in 2015 : A model for the average income per household before taxes are paid is f(t)=1,700t + 20,500.- where t is years since 1980. Find the relative rate of change of household income in 2015.
How well did the manager describe current behavior : How successful was the manager at getting a commitment to the change? Do you think the employee would change?
Matlab program in a script file using a for-loop : Write a MATLAB program in a script file using a for-loop that determines and displays the first 20 Fibonacci numbers. Hint: Initialize the first and second elements to be 0 and 1, respectively, and calculate those elements from the third element on..

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