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

  Create a assembly language subroutine

Create a assembly language subroutine MULSUM that takes an array named A containing n bytes of positive numbers, and fills two arrays, array B containing n words and array C containing n long words

  Write a function in linux assembly

Write a function in Linux assembly

  Analog measurements

Prepare an assembly program for the correctly measures the wind direction

  Design a simple digital clock

Design a simple digital clock

  Write an assembly program

Prepare an Assembly program that reads in a number of cents.

  Write an assembly language program

Write an assembly language program for encrypting alphabates of a string

  Greatest common divisor of integers-masm assembly language

Must be done in MASM assembly language: Greatest common divisor of two integers is largest integer which will evenly divide both integers. GCD algorithm involves integer division in a loop.

  Write assembly program-find right admission price to movie

Write the Assembly program to find correct admission price to movie. Price of admission to a movie is $7 for kids (under 12) and $9 for adults.

  Create simple 8-bit alu using add-subtract-shift functions

Create a simple 8-bit ALU. Requirements:The eight functions that you will implement are: add, subtract, and, or, shift left logical, less than, shift right logical.

  Write assembly program print binary representation-integers

Write the assembly program called hw6_ex1, stored in file hw6_ex1.asm. This program must prompt user to enter signed 32-bit integer. Program must print out binary representation of the integer.

  Allot op-codes and add microcode to microprogram

Allot op-codes and add microcode to microprogram of Mic-1 to implement following instructions which are then included with IJVM instruction set.

  Write mips assembly program to read two non-negative numbers

Write MIPS assembly program to repeatedly read two non-negative integers and print integer product and quotient without using multiplication and division instructions.

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