Normal quotes
This commit is contained in:
parent
5e10794a24
commit
18011c595a
352 changed files with 6040 additions and 6040 deletions
14
34-03.md
14
34-03.md
|
|
@ -4,22 +4,22 @@
|
|||
|
||||
### A Test Program for Color Cycling {#Heading7}
|
||||
|
||||
Anyway, the choice of how to load the DAC is yours. Given that I’m not
|
||||
providing you with any hard-and-fast rules (mainly because there don’t
|
||||
Anyway, the choice of how to load the DAC is yours. Given that I'm not
|
||||
providing you with any hard-and-fast rules (mainly because there don't
|
||||
seem to be any), what you need is a tool so that you can experiment with
|
||||
various DAC-loading approaches for yourself, and that’s exactly what
|
||||
you’ll find in Listing 34.1.
|
||||
various DAC-loading approaches for yourself, and that's exactly what
|
||||
you'll find in Listing 34.1.
|
||||
|
||||
Listing 34.1 draws a band of vertical lines, each one pixel wide, across
|
||||
the screen. The attribute of each vertical line is one greater than that
|
||||
of the preceding line, so there’s a smooth gradient of attributes from
|
||||
of the preceding line, so there's a smooth gradient of attributes from
|
||||
left to right. Once everything is set up, the program starts cycling the
|
||||
colors stored in however many DAC locations are specified by the
|
||||
**CYCLE\_SIZE** equate; as many as all 256 DAC locations can be cycled.
|
||||
(Actually, **CYCLE\_SIZE**-1 locations are cycled, because location 0 is
|
||||
kept constant in order to keep the background and border colors from
|
||||
changing, but **CYCLE\_SIZE** locations are *loaded*, and it’s the
|
||||
number of locations we can load without problems that we’re interested
|
||||
changing, but **CYCLE\_SIZE** locations are *loaded*, and it's the
|
||||
number of locations we can load without problems that we're interested
|
||||
in.)
|
||||
|
||||
**LISTING 34.1 L34-1.ASM**
|
||||
|
|
|
|||
Loading…
Reference in a new issue