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

Consider the use of confidence intervals in health sciences with

  Consider the use of confidence intervals in health sciences with these articles as inspiration and insights. Using the data, you collected for the Week 5 Lab (heights of 10 different people that you work with plus the 10 heights provided by your instructor), discuss your method of collection for

Instructions Planning case: This assignment is a research project that

 Instructions Planning case: This assignment is a research project that asks students to describe, analyze and assess a planning issue impacting a city/community of their choice. Chicago Area The project could be organized by the following concerns/questions: Define the contours of the issues in terms of historical elements. What are

CULTURAL INTELLIGENCE SLP1

CULTURAL INTELLIGENCE Though we cannot do much to affect your CQ Drive, presumably you have an interest in being open to adapting and developing cross-cultural skills or you would not be taking this class! The integrative Case and SLPs work together to build your CQ Knowledge and CQ Strategies, so

This week’s case study is the company WeWork. Research the

This week’s case study is the company WeWork.  Research the company’s rise through 2018, it’s fall in 2019 and the steps the Board of Directors took to achieve its current position today.  Bonus points: comment on WeWork IPO valuation. Remember to use the Company’s website and Edgar.  Let me know

In this assignment, you are to select one of the

  In this assignment, you are to select one of the top marketing technology companies below and conduct a research report on the technology.  Pick just one of the following marketing technologies: Hubspot Salesforce Marketing Cloud Zoho Adobe Marketo Sitecore In your selected marketing technology company, conduct a POWERPOINT deck

Incorporate the following into your responses in the template: Subjective:

  Incorporate the following into your responses in the template: Subjective: What details did the patient provide regarding their chief complaint and symptomology to derive your differential diagnosis? What is the duration and severity of their symptoms? How are their symptoms impacting their functioning in life?  Objective: What observations did you make

ADHD IN CHILDREN

 Description Student will pick a developmental issue of interest from the course text and conduct a literature review providing research for that topic. Findings will be presented in the form of a research paper. The body of the paper will be 3-4 pages in length (not including the cover, abstract,

ETHICAL DILEMMA Situation 1 As a patrol officer, you are

  ETHICAL DILEMMA Situation 1 As a patrol officer, you are only doing your job when you stop a car for running a red light. Unfortunately, the driver of the car happens to be the mayor of your city. You give her a ticket anyway. However, the next morning you

You will communicate your philosophy of education on at least

 You will communicate your philosophy of education on at least one page that reflects your thoughts about schools, teaching, and learning in regular and special education environments. In addition, you will provide two relevant research articles that you may use to complete this assignment. You will write this document in

what are the three types of horses that medieval knights used and for

Lyrical Essay (an academic defense of a creative work by its author) 3 page (minimum) 3 secondary sources (minimum) MLA format First person is preferred Suggestions for Secondary sources: Other works that you like reading or that talk about the same things that you do in your creative work (the

The physical geography

 Description Write paper using the information obtained from your sources (typed, double-spaced, 12 point font Times New Roman) – Intro: Explain why you picked this particular topic. Why do you like it? What were your impressions of it before you researched your paper? (up to one page) -Body: Describe the

3-4 pages Choose and research a widely adopted HIT device

 3-4 pages Choose and research a widely adopted HIT device or system designed to improve the quality of patient care while conferring cost efficiencies or savings within a clinical setting. Some examples include but are not limited to: Electronic medical records (EMRs).  Imaging systems.  Emergency room technology. Robotic surgery. Telemedicine. Note: Choose a generic

Jury for Criminal Trials This week’s discussion will focus on

Jury for Criminal Trials This week’s discussion will focus on the jury. The Constitution specifies that a criminal trial’s jury be impartial, but contrary to popular belief, does not specify that it be comprised of the defendant’s “peers.” During jury selection, the attorneys use peremptory challenges to dismiss potential jurors

For this first major assignment, you are to develop a

 For this first major assignment, you are to develop a three-page  that answers the following question: “In the 21st century, what values, traits, and/or practices should define either (a) the computer scientist or (b) the healthcare professional?” At this point in the course, you have reviewed texts that answer this

In the discussion, respond to the following. Be sure to

 In the discussion, respond to the following. Be sure to respond to all parts of the questions in order to earn full credit. Think back to the article, Are Your Company’s Strengths Really Weaknesses? Think specifically about the SWOT analysis, and consider how it may or may not be used within

Chris Peterson at DSS Consulting

 ABSTRACT Chris Peterson was assigned to lead a newly formed regional consulting team at DSS Consulting. She carefully selected the team members, built a cohesive group, and led the team in developing a new consulting service. Both Peterson and her team were satisfied with their accomplishments and ability to overcome