Text of this page, read by machine (may contain mistakes)
COLECOVISION PROGRAMMERS '
Rev. 5
©Coleco Industrie
, inc.
MANUAL
1982
CONFIDENTIAL DOCUMENT - DO NOT COPY
APPENDIX H
OS SUBROUTINE LIBRARY
INPUT REGISTERS
RANE
a L De® BEA
ACTIVATE
AnD816 x|z x
COMT_SCAN
DECLSN zis
oRCMSN x x
DECODER x x
ENLARGE x x x x x
FILL_VRAM lx ls x
FREE_SIGNAL x
GET_vRaM TE IEDE: x
INIT_SPR_ORDER x
“IMrt_sARuE x
IRIT_TIMER x x x/x
INIT_MRITER x/z x
LOAD_ASCII
wooe_1
MSNTOLSH =|
PLAY_IT | | x
PLAY_sOnGs |
‘POLLER
PuTORs x
(PUT_VRAM z|/xjuisz x
RAND_GEW |
READ_REGISTER
READ_VRAM x x PIE VE:
REFLECT _MORIZONTAL x x x x
REFLECT VERTICAL x x “x aziz
REQUEST_SIGNAL x x x
ROTATE_90 TEI IERIE:
SOUND_INTT x
SOUND_Ma
‘TEST_SIGRAL x
TIME_NGR |
UPDATE_SPTNER
WRITER
WRITE_REGISTER | =
WRITE_VRAM alax|x|e|s
WR_SPR_WB THE | { | |=
Y
Double the 53
Writes a value DE times to VRAM
DESCRIPTION
Moves pattern and color generater to VRAM
Adds 8-bit signed (A) te 16-bit unsigned (tL) . (ML)
Saves controller port data to CRAM
Decraments least significsnt nibble pointed to by (HL)
Decrenents most significant nibble pointed to by (HL)
Calle COUNT_SCAN
of the original object
Releases a timer to the free list based on SIGNAL NUM
Copies VRAM table entry to CRAM
Initializes SPRITE_ORDER date vith zeros
Initializes the VOP table address for given table
Inataalizes tamer data areas
Initislizes queue size, head and tail addresses to the
of the buffer, and head and tail to zero
Writes ASCII generator set to pattern generator table
Sets VDP to graphics mode 1 and sprite site 0
(HL) . byte, MEW to (HL) . byte, Lan
Called to start « sound
Saves frequency and attenuation data to sound chip
Reads, decodes and debounces all active portions of the
controllers
Changes an object's frame or location on the display
Saves data from CRAM to VRAM table
16-bit pseudo random number generator
Reads snd returns the contents of the VDP register
Reads from VRAM writes to buffer in CRAM
Reflection of generators arround horizontal axis
Reflection of generators arround vertical axis
Sets up a timer for the caller
90-degree clockwise rotation of generators
Initializes various sound data areas
Called every VDP interrupt, manages sound dats areas
Tests for a time-out of « timer
Maintains #11 05 software timers
Processes controller spinner switch interrupts
Perforns deferred PUTOBJ operations
Writes a value to « selected VDP register
Saves data from CRAM to VRAM
Saves local sprite data to VRAM sprite attribute table
SECTION
3.3.3
a1
6.4
9.2
3
6.3
3.2.2.
3.2.5
5.8
3.2.1.
3.2.3.
3.2.1.
5.4
96
3.2.6
7.5
6.2
3.3.4
3.2.1,
9.5
3.1.3
3.1.2
3.2.2.
3.2.2.
5.6
3.2.2,
7.2
ar
5.7
5.5
6.5
42
3.1.4
3.1.2
3.2.3.
1
2