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