Please read MOS83.txt before this file!!!

This is for developers of MOS programs.

The variables for MOS are as follows:
	-R control (don't use - if you mess this up, MOS WILL CRASH!)
	-(theta) program control (allows the program to communicate with the OS)
		The codes for this var are:
			-0 start program/program not running (set to 1-98 for MT)
			-1-98 user (for communicating with different sessions)
			-99 terminate (tells the program to exit)
			-any other value can be used for communicating with
				different sessions, but I recommend using 1-98
				first.
			Note: 999 is used for MOS to determine if it should
				reset all vars. If (theta)=999, then MOS will
				not reset vars. (this is to prevent programs
				that were running when the calc shut down from
				starting over, therefore (theta) is checked for
				999 only at MOS startup so you may use 999) :P

It is necessary to preserve all variables into a list along with the screen
(I recomend finding a way to compress the screen data for the list - a list
can only have 999 elements) in order to prevent them from being destroyed.
Use a unique name for the list.  In DStar2, I use matrix A to store the
screen - oh well...
Please use the [WINDOW] key, code 12, as the key to multitask and go to MOS.
Also, for compatiblity with future versions of MOS, please use only
matrix A and, if necessary, B.  I plan to make MOS preserve values
saved to A for each program (B will not be messed with by MOS).
Currently, MOS does not preserve any value except for (theta).

See my TEST and DSTAR2 program for more info.