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