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

  Build an 8088 assembler

In this project, you will build an 8088 assembler. The job of your assembler is to turn 8088 assembly code (i.e., the 8086 assembly code language) into 8088 machine code that executes in an DOS emulator.

  Write a program that displays a single character

Description: Write a program that displays a single character at 100 random screen locations, with a delay factor of 100 milliseconds.Hint: set the console window screen height to 200 at runtime, and watch the scroll bar jump up and down.

  Write a nonrecursive version of the factorial procedure

(Nonrecursive Factorial) Write a nonrecursive version of the Factorial procedure (Section 8.3.2) that uses a loop. (A VideoNote for this exercise is posted on the Web site.) Write a short program that interactively tests your Factorial procedure.

  Register address machine

Express the statement X= (A*B)-(C*D)-E in the assembly language of each of 0- memory address machine, 3-register address machine with 3 registers R1,R2,R3, and 2-memory-register-address machine with three registers R1,R2, R3. Your solution should use..

  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

  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(' + ', ' - ', ' * ', ' / ', ' % ')

  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.

  Pseudo-code in assembly language

Implement the following pseudo-code in assembly language (assume unsigned numbers). Declare Apple and Pear as byte sized variables.

  Write a sequence of two instructions

Write a sequence of two instructions that copies the inter in 4-7 from the AL registers into bits 0-3 of the Bl register. The upper 4 bits of AL will be cleared as will the upper 4 bits of BL. (Microsoft Assembly Language)

  Design a calculator in assembly

Design a calculator in assembly that can handle +,-,/,%, * and expresses errors in the case of division by zero or invalid characters using the template below.

  Document the protocols for passing

You must document the protocols for passing parameters and returning the result to the subroutine and also follow the convertion of saving and restoring registers in the subroutine.

  Write a constant declaration named arraysize

Given the following array definition, write a constant declaration named ArraySize that automatically calculates the size in bytes, of the array

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