EasyManua.ls Logo

Commodore Amiga - Page 116

Commodore Amiga
321 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
0000122332210000
0001223333221000
0012223333222100
0001223333221000
0000122332210000
Next, you translate each of the numbers in this picture into a binary number.
The
first
line
in
binary is shown below.
The
binary numbers are represented vertically with the
low digit
in
the top line and the high digit right below it. This is how the two color
descriptor words for each sprite line are written in memory.
0000100110010000
0000011111100000
The
first line above becomes the color descriptor high word for line 1 of the sprite.
The
second line becomes the color descriptor
low
word. In
this
fashion, you translate each
line in the sprite into binary
Os
and Is.
Each of the binary numbers formed by the combination of the two
data
words for each
line refers to a specific color register in
that
particular sprite channel's segment of the
color table. Sprite channel
0,
for example, takes its colors from registers
17
-
19.
The
binary numbers corresponding
to
the color registers for sprite DMA channel 0 are shown
in table 4-2.
Table 4-2: Sprite Color Registers
Binary
Number
Color
Register
Number
00
01
10
11
Transparent
17
18
19
Recall
that
binary 00 always means transparent and never refers
to
a color.
Sprite Hardware
103

Table of Contents

Other manuals for Commodore Amiga

Related product manuals