Create a test program that asks the user for a lower number and an upper number and then generate a 10 random number from the lower number to the upper number.Assembly Programming

Assembly Language Programming

A)  [20] Chapter 5 – Exercise 5 (Pg 187) – BetterRandomRange Procedure

Create a test program that asks the user for a lower number and an upper number – and then generate a 10 random number from the lower number to the upper number. The questions should be repeated 5 times before stopping – the loop needs to include asking for the lower and upper numbers. Make sure you use the Randomize library function in your program (it only needs to be called once and usually as the first line of the program).

 

B)  [40] The IsLetter, ToUpperCase and ToLowerCase Procedures

  1. Make a procedure, much the like the IsDigit procedure code shown at the end of Chapter 6, only the IsLetter procedure will return ZF=1 if the value in the AL register is a letter, either upper case or lower case. If the value in AL is not a letter, then ZF will return as ZF=0. The procedure must preserver

  2. The difference between the uppercase letters and the lowercase letters is that bit 5 (20h) is on for the lowercase letters and off for the uppercase letters. Create two more procedures, ToUpperCase and ToLowerCase. ToUpperCase must turn the 5thbit off (use an AND operation) and the ToLowerCase must turn the 5th bit on (use an OR operation).

  3. Make a test program that will do the following:

    1. Ask the user to enter a string using the ReadString procedure in the Irvine Library. The string will be limited to 250

    2. Copy the string to two other

    3. Count the number of Letters in the original string and report the

    4. Change all the letters in the first copy to

    5. Change all the letters in the second copy to LowerCase

Attachments:

Instructions Files

Assembly Programming Experts

expert
Sam Bingaman
Assembly Programming

94 Answers

expert
Vivek Chauhan
Assembly Programming

62 Answers

View More Experts
Disclaimer

The ready solutions purchased from Library are already used solutions. Please do not submit them directly as it may lead to plagiarism. Once paid, the solution file download link will be sent to your provided email. Please either use them for learning purpose or re-write them in your own language. In case if you haven't get the email, do let us know via chat support.

Get Free Quote!

251 Experts Online