Generate 20 pseudo-random integers in the range

Assignment Help Computer Engineering
Reference no: EM132193584

Question :

Write an ARM assembly program that will generate 20 pseudo-random integers in the range 0 to 215-1 and store the numbers in 20 consecutive halfword locations beginning at address 0x40000000.  The following pseudocode will help you get started.

randomInteger   RN 0

pointer                 RN 1

counter                RN 2

randomInteger = any 32-bit seed value of your choosing;

pointer = 0x40000000;

counter = 20;

do {

randomInteger =(((randomInteger * 214013) + 2531011) >> 16) & 0x7FFF ;

store randomInteger in next available halfword location referenced by pointer;

adjust pointer;

--counter;

} while (counter != 0);

You will need to research the LSR, AND and STRH instructions, and indirect addressing.

Please comment as well.

Reference no: EM132193584

Questions Cloud

Organizations relying on centralized decision-making : There are as many traditional organizations relying on centralized decision-making, as there are non-traditional organizations
What are the factors that are key for establishing product : What are the factors that are key for establishing product differentiation in the new post-recession consumer environment especially as it relates to economic.
Count the number of negative integers : Write an assembly procedure that reads a string of word size signed integers that ends with a "*".
Discuss the stakeholder theory of the firm : Discuss the stakeholder theory of the firm..... make a compelling case for or against the theory.
Generate 20 pseudo-random integers in the range : Write an ARM assembly program that will generate 20 pseudo-random integers in the range 0 to 215-1 and store the numbers in 20 consecutive.
Conduct a comprehensive external environmental scan : In this module, you will conduct a comprehensive external environmental scan of your business unit, including a five forces analysis.
Benefits and disadvantages of egalitarian organizations : What are the benefits and disadvantages of egalitarian organizations?
Calculate the sum of the three samples : Calculate the sum of the three samples, and returns the sum of these samples in register D.
Discuss which factor you think is the most significant : Of the three reasons you listed as reasons for making ethical decisions, discuss which factor you think is the most significant and explain your rationale.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Develop the logic for a program that sorts donation amounts

Develop the logic for a program that sorts the donation amounts in descending order and then displays the five most generous donors and their donation amounts.

  Write a prolog predicate to check if one can reach exit

A special point, called exit, represents the exit from the map. Write a PROLOG program to check if, given a starting point, one can reach exit.

  Discuss the pgp and five services provided by pgp

Discuss the PGP and five services provided by PGP and Potential mobile device security risks and some potential solutions.

  Write a program to do interpolation search

Write a program to do interpolation search and verify its correctness. See the references at the end of the chapter for suggestions and program analysis.

  Write a function to find the maximum and minimum element

Write a function to find the maximum and minimum element in a given list using methods.

  Implement a calculator for a client-server architecture

Implement a calculator for a client-server architecture using socket communication between the client and the server.

  Identify specific manufacture and model of one magnetic disk

identify the specific manufacture and model of one magnetic disk, one solid state drive, and one optical drive. Evaluate the quality of each in terms of read and write speeds, access methods, storage capacity, longevity, and price.

  What are the essential ingredients of a symmetric cipher

What are the essential ingredients of a symmetric cipher? How many keys are required for two people to communicate via a symmetric cipher?

  Create an integer array which contains ten elements

Create a VB.NET Console Application that defines a function Smallest and calls this function from the main program.

  Which is the appropriate word for the second blank

Which is the appropriate word for the first blank above, odd or even? Which is the appropriate word for the second blank, odd or even?

  Question1 information representation-while dealing with

question1. information representation-while dealing with binary numbers many it professionals favour to use hexadecimal

  Write a function that can print out the all names found

Write a function that can Search for a Name to see if it in the LIST class.Write a Function that can print out the ALL names found on each list.

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