Text of this page, read by machine (may contain mistakes)
COLECOVISION
CRAPHICS USERS’ MANUAL page 25
The 6th byte in the cbject's STATUS area will be initializes with «
valoe equal to FIRST_CEN_NAME « NUMCEN. Routines which add new
generators to the object's pattern and color generator tables may
access this byte to determine where to put thea.
Tf the carry flag is wet when ACTIVATE is called, then the object's
pattern and color generators will be mowed to the pattern and color
generator tables in VRAM. If the carry flag is not set, then the
generators will not be moved; in this case only the STATUS ane
OLD_SCREEN areas will be affected. This feature is used when several!
objects share the same generators. ACTIVATE needs to be called with
the carry flag set for only one of the objects, toe get the generators
to VRAM, ané the ether objects sre ACTIVATEd with the carry flag not
set to prevent the generators {ros being moved again. The generators
are wpoved as follows:
a) In Craphies Mode I
All the pattern generators (the number of which is given Sy the
NUMCEN entry) ere moved to the pattern generator table in VRAM.
The first generator is moved to a location within the table
specified by FIRST_CEN_NAME (i.e. the VRAM address to whith the
{iret pattern generator is moved © pattern generator base eddress
+ 8 ® FIRST_CEN_NAME). The others are loaded Seqventialily.
In Craphics Mode I the pattern generator table is divided inte 32
eight-byte blocks. The color for each block of 8 generators is
fefined by ene color generator byte. Therefore, ACTIVATE needs
to determine the number of color generator bytes that must be
movec to the VRAM color generator table It éoes thie ta the
following manner (see NOTE below):
The {iret pattern generator will tequire « color generator byte
at FIRST_CEN_NAME/B offset from the start of the color generates
table. The last pattern generator will require «a coler genecator
byte at (FIRST_CEN_NAME «+ NUMCEN -1)/8. Therefore, the total
number of color generators needed will be (FIRST _CEN_NAME ¢«
NUMCEN =-1)/8 = FIRST_CEN_NAMD/8§ +1. ACTIVATE will mowe this
number of color generator bytes to the color generator table
starting at VRAM address = color table base address «
TIRST_CEON_NAME/8.
b) In Craphics Mode If
In this mode the pattern ané color generator tables are divided
into three sections. Each section contains the generators which
will be @isplayed in the corresponding third of the pattern
Plane. A Semi-Mobile object needs to have it's generators mowed
te ene of more sections éepending on which thirds of the pattern
Plane it may appear in. The MSN eof OBJ_TYPE in the object's
CRAPHICS data area indicates which sections of the generator
tables the pattern and coler generators should be moved to as
follows: