subject

Objective: To gain experience working with memory-mapped I/O. Instructions 1. Write and test a function to draw a box on the bitmap display. The box should be roughly in the center of the screen. Draw the box one pixel at a time. Use 4 loops, one for the top, one for the right side, one for the bottom, one for the left side. Each loop writes 7 pixels per side. To make debugging easier, make the box a solid color first, then go on to step
2. Make sure that your code uses these settings: 2. Modify the draw box function to have the marquee effect by drawing each pixel in a color from an array of colors. You can use colors similar to the following:
3. Slow the marqee appearance down by adding a pause function between pixel writes, using syscall 32. Make the delay 5 ms.
4. Add keyboard functionality. You can see similar code in the bitmap sample program 2 in the GitHub. The w, a, s, and d keys should move the box up, left, right, or down one pixel. The space key should terminate the program.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:20
Write a javascript program that reads three integers named start, end, and divisor from three text fields. your program must output to a div all the integers between start and end, inclusive, that are evenly divisible by divisor. the output integers must be separated by spaces. for example, if a user entered 17, 30, and 5, your program would output "20 25 30" (without the quotes) because those are the only integers between 17 and 30 (including 17 and 30) that are evenly divisible by 5.
Answers: 2
question
Computers and Technology, 22.06.2019 10:00
Wich technology can a website use to allow you to listen to a concert live over the internet?
Answers: 3
question
Computers and Technology, 23.06.2019 10:00
How do i delete my account on this because i didn't read this agreements and also i put age at xd
Answers: 1
question
Computers and Technology, 23.06.2019 11:00
Describe three characteristics of at-risk drivers. a. b. c. describe three characteristics of safe drivers. a. b. c. describe three driver errors that could cause a collision. a. b. c. how will this information affect you as a driver now and in the future? (2-3 sentences)
Answers: 2
You know the right answer?
Objective: To gain experience working with memory-mapped I/O. Instructions 1. Write and test a func...
Questions
question
English, 19.02.2021 01:00
question
Mathematics, 19.02.2021 01:00
question
English, 19.02.2021 01:00
question
Mathematics, 19.02.2021 01:00
question
Mathematics, 19.02.2021 01:00
question
History, 19.02.2021 01:00
question
History, 19.02.2021 01:00
question
Mathematics, 19.02.2021 01:00
Questions on the website: 13722363