Determine how many of the values in the locations

Assignment Help Assembly Language
Reference no: EM13264481

Figure consists of an incomplete program for the course's simulated processor and a high level pseudo code of the main program. Assume all numbers are in hexadecimal.

The program is to determine how many of the values in the locations with addresses $2000 to $2009 are less than $50, how many are equal to $50 and how many are greater than $50. The number of values which are less than, equal to and greater than $50 are to be stored in the locations labelled RESULT1, RESULT2 and RESULT3 respectively.

START .....................

ORG $1000

.....................

.....................

ORG $2000

while (loop counter ≠ 0) do

DATA DC.B $05,$10,$20,$30,$40,$50,$60,$65,$70,$80

RESULT1 DC.B $0

RESULT2 DC.B $0

RESULT3 DC.B $0

(i) Incomplete program in T121 processor assembly language

initialise the loop counter

load the test data

subtract $50 from test data

if (test data is <$50)

then increment the count for <$50

else if (test data is >$50)

then increment the count for >$50

else increment the count for =$50

decrement the loop counter

end while loop

(ii) High level pseudo code of the main program

END START

Figure Q4

(a) Write the program and test its functionality with the course's simulator. Once it is working correctly, copy and pastes your program to your MS WORD answer document.

(b) Submit a screen shot of the memory contents that include addresses from 1FF0 to 2010 when the program stops. Use the instructions given below to obtain the screen shot.

Instructions:

1. To view the memory contents at the simulator screen, click on the View menu and select

2. To capture the 'screen shot' select the window, press <Alt> + <Print Screen> on your Memory. Click on the Page down button to the required addresses. Verify that the  memory contents are indeed correct.

computer keyboard, and then paste it onto your word document.

Reference no: EM13264481

Questions Cloud

Calculate the kilomole fraction : A container of volume V is divided by partitions into three parts containing one kilomole of helium gas, Calculate the kilomole fraction
Investment possibilities in african countries in the energy : you are researching direct foreign investment possibilities in african countries in the energy sector, either 100 percent owned or with a local partner. Which organizations discussed in this chapeter would you look to help in developing a list of cri..
How much additional quantity that you have to add : determine the position of fermi level with respect to the valence level. What type of dopant and how much additional quantity that you have to add to this crystal to move the fermi level by (an energy amount of) KT toward the valence band
Explain what is the change in energy and delta e : What is the change in energy, Delta E, in kilojoules per mole of hydrogen atoms for an electron transition from n=8 to n=2? Express your answer in kilojoules per mole to three significant figures.
Determine how many of the values in the locations : Determine how many of the values in the locations with addresses $2000 to $2009 are less than $50, how many are equal to $50 and how many are greater than $50.
What is the after tax weighted average cost of capital : What is the after tax weighted average cost of capital (WACC) of this firm?
How many photons are emitted by the laser each second : A laser produces a 5.10mW beam of light, consisting of photons with a wavelength of 637.8nm. How many photons are emitted by the laser each second
Find the max voltage across the resistor and capacitor : In a circuit, a resistor is only element that has resistance. The generator voltage varies in time, where the amplitude of e max= 1.2 volt and emf freq.= 0.5 Hz , which the max current is equal to the max current when the freq. of emf = 3.0 Hz,
Calculate the total internal energy change : A gaseous reaction occurs at a constant pressure of 45.0 atm and releases 57.1 kJ of heat. Before the reaction, the volume of the system was 9.00 L . After the reaction, the volume of the system was 2.60 L.

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