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

  Write a single arm assembly language instruction equivalent

Write a single ARM assembly language instruction equivalent to a function that takes in three strings and checks if any are a substring to one another, if so return 1, if not return 0.

  Program that converts the temperature

Write a program that converts the temperature F in Farenheit to C in Celsius using C = (F-32)*5/9. For ease of programming you can display the result in fractions

  Program that ask the user to input a number between 0-10

Write a program that ask the user to input a number between 0-10 (n). Then your program finds the factorial of the number

  Accept two 1-digit numbers (from 0 to 9) from the keyboard

Write an assembly language program that will accept two 1-digit numbers (from 0 to 9) from the keyboard, compare the two numbers, and then print out th enumber of greatest value

  Write a mips assembly language program

Write a MIPS assembly language program that prompts for a user to enter a series of floating point numbers and calls read_float to read in numbers and store them in an array. Then the program should display the array content on the console window. Th..

  Assembly language program that generates and displays

Write a assembly language program that generates and displays 20 random strings, each consisting of ten letter(A-Z, a-z)s or number(0-9)s.

  Implement a simple 32 bit calculator program

Operand A  and  Operand B  have to be  signed  32 bit integers. So an operand can be a negative number. For example, if you input is (-1 + 3), it should return 2. Operator  must be one of the characters(' + ', ' - ', ' * ', ' / ', ' % ')

  Assembly language point-of-view

From an Assembly Language point-of-view, any registers that are touched by a function need to first be preserved and then later restored to their original value when that function ends, if that functions wishes to leave no side-effects after its exec..

  Write an assembly program in mips that get the array size

Write an assembly program in mips that get the array size from the keyboard, then reads a list of integers from the keyboard and writes the sorted list in ascending order to the console screen.

  Write an arm assembly function that takes an array

Write an ARM assembly function that takes an array of integers and insures that all entries are positive. Remember the initial integer in the array is at index zero.

  Prompts for an int8 value to inspect and then prints

Write an HLA Assembly program that prompts for an int8 value to inspect and then prints it in binary format.

  Program [hcs12 assembly language] to compute the average

Write a program [HCS12 assembly language] to compute the average of an array of N 8-bit numbers and store the result at $1000

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