Text of this page, read by machine (may contain mistakes)
COLECOV1S5I0N
CRAPHICS USERS’ MANUAL page 12
3.0 MOBILE OBJECTS
Mobile objects emulate size 1 sprites with © magnification Ci.e. they
are always 16 by 16 pixels in wise and appear as if they were
superimposeé upon the background). They may be positioned anywhere on
the pattern plane with pixel resolution and may also be made to dSleed
en anc off the pattern plane in any direction.
Tach frame of & Mobile obfect requires exactly four pattern generators
and one color generator. These generators, however, are not mowed to
VRAM. In order to display the object anywhere with pixel resolution,
2 new wet of nine pattern and color cenerators must be created by the
OS grephice routine PUT_MOBILE. These new generators represent
graphically the superposition ef the Mobile ebject upon the Background
at which it is to be diaplayed. The new generators are thanersd te
the VRAM pattern and color generator tables, and nert the names of
these generators are written into the pattern name table, thus
displaying the object at the desired location. Nine generstors sre
used in order to cover all positional relationships between the
desired position of the object and the boundries of the pattern
positions in the pattern plane (see figure 1).
The pattern and color generator table space used by PUT_MOBILE depends
on the graphics mode being cused and, in graphics mode Il], the location
of the object on the display.
In graphics mode I, PUT_MOBILE will use 18 pattern generator
locations. The first pattern generator will be located at
FIRST_CEN_NAME (i.e. the actual VRAM address will be the pattern
generatcr base address + FIRST_LCEN_NAME ® 8). Three er four coler
generator bytes will be required depending on the value ef
FIRST_CEN_NAME. If FIRST_CEN_NAME MOD 8 ¢ 7, then there needs to be
space for three color generators: if FIRST_CEN_NAME MOD 8 oe 7, then
there needs to be space for four color generators. The first of the
coler generators will be located at FIRST_CEN_NAME/S (i.e. VRAM
address equals the color table base address «+ FIRST_CEN_NAME/8).
When cperating in craphice mode Il, Mobile ebjects will require
generator space for 18 pattern ang 18 color generators in each third
of the pettern ané color generator tables which corresponds te thet
third ef the pattern plane in whith any part of the object may sppeer.
The location within each third of the tables is determined dy
TIRST_CEN_NAME. When any part of the object is in the top third ef
the pattern plane, pattern generators will be located at the VRAM
address given by the pattern generator base address « FIRST CEN_NAME *
s. If any part is in the middle third of the pattern plane, pattern
generators will be located at the VRAM address given by the pattern
generator base address + 80CH + FIRST_CEN_NAME * 8, and if any part ts
in the bottom third, pattern generators will be located at the VRAM
address given by the pattern generater base address ¢ 1000H ¢
TIRST_CEN_NAME ® 8. The color generators are located in @ similar
manner.