Text of this page, read by machine (may contain mistakes)
ADAM~ TECHNICAL REFERENCE MANUAL
PRELIMINARY RELEASE CHAPTER 5
_ _ _ _ _ _ _ _ _ ____;_ TOOLS AND UTILITIES
___;_ _..=;__ _ _ _ _ ____;;;;,....;.;=--::..::.....:;.:::.::;__
To read memory images into RAM, three pieces of information
are required. They are:
Start of memory buffer of transfer address 2 bytes
Start of memory image on tape or block number 2 bytes
Number of lK Blocks in the memory image 1 byte
This information is organized into a 5-byte block called an
Overlay Control Block (OCB). The overlay control blocks are
organized into an Overlay Control Table (OCT). The OCT
controls the loading of data from tape using the tape inter-
face software described in Subsection 1.6. The table should
be pointed to by a two byte pointer and it should be ter-
minated by a byte set to FF. The Overlay Control Table
should be loaded immediately after the cold start loader.
1.4 Start of Game
EOS loads Block O (the cold start loader) to C800H and passes
control to it. The cold start loader then initializes the
system and loads enough of the main program to allow some
user interaction to begin. The following rules define the
interface to the cold start loader.
1. The main program is loaded to location 8000H.
2. Immediately following the ColecoVision OS vectors at 8000H,
and the game name, is a pointer to the OCT. The first entry
in the OCT describes the main program.
3. Control is passed to the main program by the vector at
address 800AH as defined in the OS_7 PRIME.
4. The main program must contain the OCT in the first lK block.
5. The main program must contain the background loading routines
described in Subsection 1.7. They are required to reside in
the first 3K.
6. The main program must immediately display graphics or allow
some user interaction.
7. Once control is passed to the main program, game play must
start as soon as possible.
8. When control is transferred to the main program, Register B
contains the boot device TD. Register B should be stored at
the globally defined address DEVTCE ID.
Subsection 1.5 is an example of the 8000H area code which
interfaces to the cold start loader. Compare this to the
area defined in 0S_7.