Explain each step of the machine cycle

Assignment Help Assembly Language
Reference no: EM131167210

High-level computer languages are created to be understood by humans. As a result, the keywords and the commands of these languages are easy to understand. Machine languages are harder to understand and operate.

For this assignment, you should assume that the memory cells at addresses F0 to F9 are in the machine described below, and that it contains the hexadecimal bit patterns described in the following table:

F0

20

F1

C0

F2

30

F3

F8

F4

20

F5

00

F6

30

F7

F9

F8

FF

F9

FF

Op-Code

Operand

Description

1

RXY

LOAD the register R with the bit pattern found in the memory cell whose address is XY

2

RXY

LOAD the register R with the bit XY

3

RXY

STORE the bit pattern found in register R in the memory cell whose address is XY

4

ORS

MOVE the bit pattern found in register R to register S

5

RST

ADD the bit patterns in registers S and T as though they were two's complement representations and leave the result in register R

6

RST

ADD the bit patterns in registers S and T as though they represented values in floating-point notation and leave the result in register R

7

RST

OR the bit pattern in registers S and T and place the result in register R

8

RST

AND the bit patterns in register S and T and place the result in register R

9

RST

Exclusive OR the bit patterns in registers S and T and place the result in register R

A

ROX

ROTATE the bit pattern in register R one bit to the right X times. Each time place the bit that started at the low-order end at the high-order end.

B

RXY

JUMP to the instruction located in the memory cell at address XY if the bit pattern in register R is equal to the bit pattern in register number 0. Otherwise, continue with the normal sequence of execution.

C

000

HALT execution

1. Explain (in detail) each step of the machine cycle. Show the contents of each of the registers and each of the memory cells after the execution of the code.

2. Compare and contrast machine and high-level languages using resources from the Internet or AIU's library. Be sure to explain why the hexadecimal and binary codes are important for programming in both languages.

Reference no: EM131167210

Questions Cloud

What are graphs : What are Graphs? How are they used in Searches and Minimum Spanning Trees? What is the difference between the Depth First Search and the Breadth First Search?
What is quadratic probing : What is quadratic probing? What is double hashing? How are they used in Hash Tables? Why are prime numbers important when using Hash Tables? Discussion of efficiencies should include "Big O" notation, such as O(1), O(log N), O(N), O(N^2), answe..
What is quadratic probing : What is quadratic probing? What is double hashing? How are they used in Hash Tables? Why are prime numbers important when using Hash Tables?
What are hash tables : What are Hash Tables? What are they useful for? What is their efficiency? Discussion of efficiencies should include "Big O" notation, such as O(1), O(log N), O(N), O(N^2), answer must be at least 10 sentences long.
Explain each step of the machine cycle : Explain (in detail) each step of the machine cycle. Show the contents of each of the registers and each of the memory cells after the execution of the code.
Maximize the efficiency of external storage : How are B-trees used to maximize the efficiency of External Storage? Discussion of efficiencies should include "Big O" notation, such as O(1), O(log N), O(N), O(N^2), answer must be at least 10 sentences.
How low should lowland let its tv inventory drop : The weekly demand for TVs at Lowland Appliance is normally distributed with mean 400 and standard deviation 100. - How low should Lowland let its TV inventory drop before it places an order for more TVs?
How would you like to work on this assignment for me : How would you like to work on this assignment for me? Select a NOSQL database (MongoDB, Cassandra, DynamoDB, BigTable, etc...) and write a paper describing its security features. In particular, you should discuss:
Induction proof and recursion : Describe a Θ(n log n)-time algorithm that, given a set S of n integers and another integer x, determines whether or not there exist two elements in S whose sum is exactly x.

Reviews

Write a Review

Assembly Language Questions & Answers

  White-collar assembly lines

White collar workers (who may not necessarily be considered high-skilled) are impacted in this case. Call centers and data processing centers are the "white-collar assembly lines" of IT. Accountants, medical transcriptionists, telemarketers, and o..

  Modify the single-cycle mips processor

Modify the single-cycle MIPS processor to implement one of the following instructions. Sec Appendix B for a definition of the instructions. Mark up a copy to indicate the changes to the datapath. Name any new control signals.

  Program that requests n as input

Write a program that requests N as input and computes the left-hand and the right-hand sides of the equation, verifies that they are equal, and displays the result.

  Write an assembly language code segment to insert

Write an assembly language code segment to insert into the main.asm file that takes an input controlled by a potentionmeter, converts that input to a digital value, and displays that value on the LEDs according to the following

  Mips assembly instruction to set the pc

Is it possible to use the jump (j) MIPS assembly instruction to set the PC to the address as 0x4000 0000 and Is it possible to use the branch-on-equal (beq) MIPS assembly instruction to set the PC to this same address?

  Write a program in assembly language

Write a program in assembly language which uses BIOS interrupt INT 21 to read current system time and displays it on the top-left corner of the screen.

  Given the memory components of the ias computer

Given the memory components of the IAS computer shown below, show the assembly code language for the program, starting at address 08A.

  Give the initial value of the control register

Assume 8255’s PA=out, PB=in, PCL(PC0-PC3)=in, and PCU(PC4-PC7)=out, the port address of A,B,C and the Control Register are 300H-303H respectively. Now if we want to get data from the port B and send it to port A, and get data from PCL then send it ou..

  Problem 1 square root for this problem you will write a

problem 1 square root for this problem you will write a short assembly program that computes the integral square root

  Carefully comment each line of the assembly program

The assembly language code segment below is to be inserted into the main.asm file that takes an input controlled by a potentionmeter, converts that input to a digital value, and displays that value on the LEDs according to the following

  Write an assembly language version

write an assembly language version of the following c code segment

  Hexadecimal number that can be stored in eax

The largest 24 bits signed hexadecimal number that can be stored in EAX and table with hexadecimal numbers only.

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