Computers and Technology

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.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 01:00, Trumpman137
Which option marks all modification made within a document? review comment track changes balloons
Answers: 1
image
Computers and Technology, 23.06.2019 06:30, Zieken993
Martha is designing a single-player game. her manager suggests that she plan the design to incorporate future modifications. which principle of game design relates to planning for future modifications?
Answers: 1
image
Computers and Technology, 23.06.2019 07:00, MissSmartyPants88
To produce a starlight effect in her photograph, lina should choose the filter for her camera.
Answers: 1
image
Computers and Technology, 23.06.2019 15:30, jasssp
Write a program in plp assembly that counts up by one starting from zero (or one) inside a loop and writes this value to the leds every time the value is increased. the memory address of the leds is 0xf0200000. the table below shows the meaning and an example usage of the instructions covered in the video, plp instructions for project 1. instruction example usage meaning load immediate li $t0, 8 register $t0 is set to the value, 8. store word sw $t2, 0($t1) the value in register $t1 is used as the memory address. the value in register $t2 is copied into this memory address. add addiu $t4, $t3, 29 register $t4 is assigned the sum of 29 and the value in register $t3. jump j your_label_name the program jumps to the line following the label, "your_label_name: ". label your label name: defines a label called "your_label_name: " that can be jumped to
Answers: 2
Do you know the correct answer?
Objective: To gain experience working with memory-mapped I/O. Instructions 1. Write and test a func...

Questions in other subjects:

Konu
Mathematics, 28.10.2019 22:31