    **  Portions of this article first appeared in ST Applications   **
    **  It is copywritten by Sol Guber                               **

The Joys of Modula-2
    The purpose of this column is two fold, to teach a little more
about the graphics for the ST and to expand your cosmic consciousness. 
This month's program shows the position of the planets at any given
time.  It starts out in January, 1988 and allows you to watch the
planets move on a monthly basis.  You can also see the planets jump
every year as well as move backwards.  You can also enter any date that
you wish, so that you can determine what the planetary configuration
was when you were born.
    The only user input is through the keyboard where only several of
the keys are operable.  The BusyRead function is used to determine if
the keyboard has been pressed and return the key that was pressed. 
This key is first changed into a capital letter.  The CASE function is
used to see if the letter was a "Q", "M", "Y", space,"B", or "N".  The
Q is for quit and the space and M both increment the months by one. 
The Y increments the month by 12 and the "B" decrements the months by
12.  If you want to enter a new month, "N" is pressed.  Since the
BusyRead function is used, there is no echoing of the character on the
screen and this makes the display much neater.
    If the "N"  is pressed, then the screen disappears and a message
appears to type in the new month with a slash notation.  Then a little
parsing is done on he string that is returned.  It is check to be sure
that there is a "/" at the second or third position.  There is no
checking done for strange months like 25/1988, nor is there checking
for minus numbers like -6/1885.  This would have made the program a
little bit longer but is a good exercise to be left for the reader.


	This program is one of 28 that are available.  Each one will teach
you about the Atari ST and programming in Modula-2.  Collect all twenty
eight today.
	


