CSP25 Assignment 05 Question 1 (From Chapter 5) The RandomRange

CSP25 Assignment 05
Question 1 (From Chapter 5)
The RandomRange from the Irvine32 library generates a pseudo random integer between 0 and
N-1. Your task here is to improve this by generating a random  number between M and N-1. Let
the user specify M in EBX and N in EAX.
Here is a sample test of this procedure whose name will be BetterRandomRange in your
program.
MOV EBX,-300   ;M is -300
MOV EAX,100   ;N is 100
Call BetterRandomRange

You should call this BetterRandomRange procedure in a loop to be repeated 20 times and display
the value return 20 times also.

Make sure you have the following at the top of your Assembly code file. Fill it up accordingly
such as the name of the asm file will be Assignment05.asm
; Program Template (Assignment01.asm)
; Program Description: <fill this up>
; Author: <fill this up>
; Creation Date: <fill this up>
; Revisions:  <fill this up if necessary>
; Date:Modified : <fill this up if necessary>
Also make sure to document your Assembly code.

What to submit?
TWO files.
1. Copy your program and paste it to a text editor such as Notepad and save file as .txt file
then submit this text file.
2. A pdf file that has your code (copied or screenshot) and output of dumping of your
registers.
 

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

Select two underdeveloped countries and examine the key Nursing Assignment Help

Select two underdeveloped countries and examine the key determinants of health. Compare and contrast the healthcare systems, economy, and healthcare system challenges, such as access to care and health disparities. Use the Eight Factor Model to assess the strengths and weaknesses of the healthcare systems and determine the extent to

The technology discussed in the paper attached below is the

The technology discussed in the paper attached below is the topic for this assignment as well. Overview For this activity, you will analyze your technology’s role in the event using one of the general education lenses and recommend strategies for using this kind of analysis to meet your personal goals.

To demonstrate your ability to analyze a business scenario and

  To demonstrate your ability to analyze a business scenario and create a “real world” database Assignment: Create a database for a small e-commerce web site. As a minimum, it should include the following entities: Customer – name, address, city, state, zip, etc. Inventory – description, category, quantity on hand,

Question 2: Libya recently announced that it is claiming a

Question 2: Libya recently announced that it is claiming a 200-mile zone off its coast as its territorial waters (and airspace). To stake its claim, Libya placed armed warships across the 200 mile line and warned the world that this line constitutes a “line of death” to anyone who might

“The Goal” by Eliyahu Goldratt and Jeff Cox book report

The Goal, by Eliyahu Goldratt and Jeff Cox, North River Press, 4th edition. Each student will prepare a book report on it by the end of the quarter. Your job is to help us understand: 1. exactly what happened in each chapter, and 2. why this is important. You should

SWK 114-001: Social Welfare History & Institutions Blended

Paper Description: You will learn about elected officials on the city/town and state levels in New York City and New York State, respectively. You will educate yourself about any and all social work-related issues/social problems and past and pending legislation, including (if possible) the Dream Act and Social Work Investment

GCU Epidemiology Discussion Nursing Assignment Help

I’m working on a health & medical discussion question and need a sample draft to help me learn. My professional interest is epidemiology. Write a 250 word paragraph of a short term goa and a long term goal forthis professional interest. Expert Solution Preview Introduction: As a medical professor with

Assignment: (2 page: 1 page each) Information Systems for Business

 Assignment: (2 page: 1 page each) Information Systems for Business and Beyond Questions: Chapter 13- study questions 1-10, Exercise 1 (2, 4) Information Technology and Organizational Learning Assignment: Chapter 11 – Review the employment challenge in the digital era (as well as the entire chapter).  Reflect on the various challenges are

You are meeting with your HRD team and preparing to

You are meeting with your HRD team and preparing to meet all of the Pegasus department heads. You are preparing for the first change intervention. Using the results of the previous work for this project (previous assignments), complete the following: Discuss the specific steps or interventions to begin the change

Read Partnerships In Preparedness – A Compendium of Exemplary Practices

Read Partnerships In Preparedness – A Compendium of Exemplary Practices in Emergency Management Volume IV entitled “Flood Buyout Program” and the flyer entitled Mapping the 100-Year Flood Plain Is Not the End Of The Story,  In 350 words or more discuss what approach would be needed to put these programs

Every human on the planet over the age of 2 years old has likely had

Every human on the planet over the age of 2 years old has likely had to deal with conflict at some point. Managing conflict is often something that most of us avoid in order to mitigate emotional pain however, interpersonal communication and conflict resolution is a skill that can be

ou are required to complete a research assignment based on

 ou are required to complete a research assignment based on a specific fraud or type of fraud. My preference is for the you to discuss a fraud that you are familiar with (i.e.: happened where you have worked or have personal knowledge of). If you do not have personal knowledge

The assignment should be typed out on a word document

   The assignment should be typed out on a word document in APA format. Each paragraph should consist of 5-6 complete sentences. The assignment should consist of 1,500- to 2,500-words (excluding references and title pages). This assignment must be completed and submitted on a Microsoft word document.  1. Description of

How social media is changing police investigations

 This is an analytical and descriptive essay, but you need to think more about the analysis side. Talk about how more and more officers are using social media during their investigations. Find scholarly literature such as court cases or examples in which the literature studies police practices before the use