Problem 6 : Hardware Devices
- Using an appropriate 80x86 string opcode, Write a few lines of code to
draw a green horizontal line completely across the 2nd line of a 320x200
(mode 13h) video screen. Recall that VidGrSeg=0A000h. (10 pts)
- Suppose a video card can display 1000x1000 pixels using
a palette with 16 entries of 15-bit color values
(5 bits for each of red, green, and blue).
(2 pts/each)
- How many different colors can this card display ?
- How many colors can displayed simultaneously ?
- How much video memory does this card require ?
- How many shades of green can be displayed simultaneously ?
- Briefly describe why the analog position of a joystick is
lineary proportional to the number of IN operations performed
by a loop polling port 201h.
(7 pts)