Create a procedure to show all of the text color combinations. Use EAX for this. Choose a message to print (it can be anything: your name, your favourite food, etc.) You do not need to input the string from the user at this point. Set ECX to 256, and EAX to zero. Preserve all General-Purpose registers and the flags. Loop on the following: (a) Set the text color (using SetTextColor) (b) Print your message (c) Carriage Return, Line Feed (using CrLf, or add 0Dh, 0Ah to your string) (d) Increment EAX (using INC) ADD EAX, 1 (e) Exchange EAX and EBX, or push EAX to the stack (f) Set the text color to black (set EAX = 0 and CALL SetTextColor) (g) Delay for 50 msec (0.05 seconds, using Delay) (h) Exchange EAX and EBX again, or pop EAX from the stack (i) Loop At the end of your function before returning, set the colour to grey text on black (value 07h). A snip of the output of this question is below. Be sure to push and pop EAX, EBX, ECX and the flags to preserve their values! Your procedure should assume that the string offset is in the EDX register before it begins. This procedure should display output like this: Randomness! Create a procedure to generate a signed random number between a user supplied range. Collect the high value for the range first, then the low value. Call Randomize and then call RandomRange with the two values appropriately. Add the low value and display the result as a signed integer, with an appropriate message. You can use the same file for the questions, just separate the outputs.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Create a procedure to show all of the text color combinations. Use EAX for this. Choose a message to print (it can be anything: your name, your favourite food, etc.) You do not need to input the string from the user at this point. Set ECX to 256, and EAX to zero. Preserve all General-Purpose registers and the flags. Loop on the following: (a) Set the text color (using SetTextColor) (b) Print your message (c) Carriage Return, Line Feed (using CrLf, or add 0Dh, 0Ah to your string) (d) Increment EAX (using INC) ADD EAX, 1 (e) Exchange EAX and EBX, or push EAX to the stack (f) Set the text color to black (set EAX = 0 and CALL SetTextColor) (g) Delay for 50 msec (0.05 seconds, using Delay) (h) Exchange EAX and EBX again, or pop EAX from the stack (i) Loop At the end of your function before returning, set the colour to grey text on black (value 07h). A snip of the output of this question is below. Be sure to push and pop EAX, EBX, ECX and the flags to preserve their values! Your procedure should assume that the string offset is in the EDX register before it begins. This procedure should display output like this: Randomness! Create a procedure to generate a signed random number between a user supplied range. Collect the high value for the range first, then the low value. Call Randomize and then call RandomRange with the two values appropriately. Add the low value and display the result as a signed integer, with an appropriate message. You can use the same file for the questions, just separate the outputs.
Hello Colours!
Hello Colours!
Hello Colours!
Hello Colours!
Hello Colours!
Hello Colours!
Hello Colours!
Hello Colours!
Hello Colours
Hello Colours!
Hello Colours!
Hello Colours!
Hello Colours
Hello Colours!
Hello Colours!
Hello Colours!
Hello Colours!
Hello Colours!
Hello Colours!
Hello Colours!
Hello Colours
Hello Colours!
Hello Colours!
Transcribed Image Text:Hello Colours! Hello Colours! Hello Colours! Hello Colours! Hello Colours! Hello Colours! Hello Colours! Hello Colours! Hello Colours Hello Colours! Hello Colours! Hello Colours! Hello Colours Hello Colours! Hello Colours! Hello Colours! Hello Colours! Hello Colours! Hello Colours! Hello Colours! Hello Colours Hello Colours! Hello Colours!
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY