Download Print this page

Atari CX70 Operator's Manual page 31

Light pen

Advertisement

ATARI Light Pen Operator's Manual
MODULE K (LINE 3000)
This routine moves mode bars from an old location to the newlg
indicated mode location. The mode indicator bars appear to the left of
each selection item in the menu area/ only uhen that mode is active.
This module is called from Module C (initialize them) or Module U
(move them to a neu spot). The routine first decides which bar is
selected (color or drawing mode) by looking at the Y coordinates of
the pen in the menu area (lines 3010/ 3020). No bars are associated
with Load/
Save/
or Clear so it will return with no action if those
functions are selected (line 3030). If the new mode is a drawing mode/
the bar is moved from mode PENMODE to mode NPEN by erasing the old bar
(lines 3110-3125)/ setting the new PENMODE (line 3130)/ and drawing
the new bar (lines 3140-3157).
If the new mode is a color mode/
the
same method is used.
When Module K is called as a subroutine from
Module C/ the entry point is at that section which draws the new bar.
This is because there is no old
bar to erase.
MODULE L (LINE 450)
Changes the color of the pen to the background color/ BASIC'S COLOR 0
command/
and sets the color mode identifier/
PENCOLR/
to 0.
This is
used
to erase.
MODULE M (LINE 500)
Changes pen color to red using BASIC COLOR 1 command/ and sets color
mode identifier/
PENCOLR/
to mode 1.
MODULE N (LINE 550)
Changes pen color to green using BASIC COLOR 2 command/ and sets the
color mode identifier/
PENCOLR/
to mode 2.
MODULE 0 (LINE 600)
Changes pen color to blue using BASIC COLOR 3 command and sets the
color mode identifier/
PENCOLR/
to mode 3.
MODULE P (LINE 700)
LOAD first plots the point indicating that a load is taking place.
Line 707 simulates a carriage return/ which is needed for a cassette
load. If you are using diskette#
delete line 707. Then in line 710,
the file is opened. Line 720 sets the CIO command call to 7, which
is a "get characters" command. Control is transferred to the second
section at line 800. This section finishes setting up the lOCB and
ATARI Light Pen Demonstration Program Cassette - 27

Advertisement

loading