Text of this page, read by machine (may contain mistakes)
COLECOVISION
GRAPHICS USERS' MANUAL Page 2
1.2 DATA STRUCTURE OVERVIEW
Fach ebject lm defined by & “"Righ lewel definition” in cartridgge Ron
(CROM) which Links together several different data areas. The data
contained within these areas completely specifies all aspects of an
ebject. The following its a brief description of thea, different areas
CRAPHICS
This data area is alse located in CROM. Pattern and color generators
for Semi-Mobile, Mobile and Sprite ebjects, and frame dats for all
ebsjects are located in the CRAPHICS data area. The data structure
within each GRAPHICS area depends on the type of object with which it
is associated. If, Rewever, two er sore shjects of the Sime type ere
graphically identical, they may share the same CRAPHICS data area.
This will reduce the esocnt of graphics data that needs to be stored
in CROM.
STATUS
Tach object must have its own STATUS area in CPU RAM. The cartridge
program uses this area to manipulate the object. This ts gone by
altering the location within STATUS which determines which frame is to
be Gisplayed as well as the Iocations which define the position of the
object on the displey. The graphics routine, FUT_OBJECT., when called,
will access the object's status area and place the object accordingly.
OLD_SCREEN
Mobile and Bemi-Moblle obfects utilise the pattern plane. They are
displayed by overwriting an array of the nemes in the pattern name
table with an array of names which represents a particular frame of
the object. The overwritten names can be thought of a8 representing «
backgrouné frape which is “underneath” the object. If the background
frame will need to be restored to the display (e.g. when the object
moves or {s removed from the display) then it is necessary to save
that frame. OLD SCREEN is a save area for background frames. The
graphics routines PUT_SEMI and PUT_MOBILE will automatically save ané
testore background {rames when an object is moved or its frame 13
changed. OLD SCREEN may be located in CRAM or in VRAM.
1.3 CRAPHICS ROUTINES OVERVIEW
ACTIVATE
The priwary purpose ef this routine is to move the pattern ané color
generators from the CRAPHICS data area into the pattern and color
Generator tables in VRAM. Each object must be “activated” before it
can be ¢isplayeé. ACTIVATE also initialises the first byte in an
ebject's OLD_SCREEN data area with the value 80H. PUT_OBJECT tests
this location before restoring the background names to the name table.
If the value BCH is found, it {ts an indication that the object has not
yet been displayed and therefore, (here are no saved background nases
im OLD_SCREEN. ACTIVATE initialises a byte (in the cease of Mobile
objects, a word) which indicates where additional generators should be