Write an assembly program to compute the fibonacci sequence


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

Request for Solution File

Ask an Expert for Answer!!
Other Engineering: Write an assembly program to compute the fibonacci sequence
Reference No:- TGS01671561

Expected delivery within 24 Hours