
(15) Set lower right hand corner
of
window - to use tllis command,
position the cursor. and
print
the
command.
Using
this command in
conjunction with
the
Define
Home
command
allo\'15
the
programmer to
easily define a window anywhere
on
the 540 display. The 2 command
codes when used together define a
box (window) giving starting and
ending address and the line length.
Remember
that
all cursor movement
is relative to the present "home"
position.
(16) Define Window - The video
system
allo'n'S
you to save up to 6
windo'n'S for instant recall.
To
use this
from
BASIC,
you;
PRINT
CHR$(
16);CHR$(x);
where
"x"
is a number between 0 and
5.
This saves all current window
parameters (starting line, ending line,
color, and line length) in a table for
later recall. Window 0 is already
defined to be the entire 540 video
display and window 5 is used
internally by the
set
Window to color
command.
You
may use window 0 for
your own use,
but
you should know
that
once
that
window's parameters
are changed you have no way to
access parts
of
the video screen
outside
of
this "master window"
(command code I).
If
you
are
not
using color or the
set
color controls,
then you may also use window
5.
If
you
are
using color, don't use window
5·
( 17) Set Window - This is the
command
that
allo'n'S
you to recall
sa~ed
window parameters.
To
recall a
window from
BASIC,
you;
PRINT
CHR$(
17);CHR$(x);
where
"x"
is a number between 0 and
5.
This
Will
set
the Window to the
saved parameters and home the
cursor in
that
window.
(~'8)
Video Control - This command
code is used to control
the
video
board's color and sound.
To
use this
command from
BASIC,
you;
PRINT
CHR$(
18);CHR$(x);
where
"x"
is
the
desired function
Poge
6
PEEK(65J
Summer 1966
number. Refer to the manual
that
came with your system for
the
desired function number. This
command also stores the last
command function entered
at
$259E
(decimal 9630) so
that
the present
video/sound/color attributes can be
read.
For
proper operation
of
the 540
Video Routine, you should no longer
POKE
the color/sound/video control
function,
but
use this command
instead.
(
19)
Output Character - This command
allo\'15
you to
print
any
of
the graphics
characters, including control
characters.
To
use this command from
8ASIC,
you;
PRINT
CHR$(
19);CHR$(x);
where
"x"
is the
ASCII
value from 0 to
255
of
the character you wish to print.
(20) Direct Cursor Position - This
command is used to position
the
cursor anywhere within
the
present
window.
It
is used by;
PRINT
CHR$(20);CHR$(x);CHR$(y);
where
"x"
is
the
desired column and
"y"
is the desired row. This routine
does range checking and will now
allow the cursor to move outside
of
the presently defined window.
All
movement is relative to the "home"
position.
(~
I) Cursor
Up
- This command moves
the cursor non -destructively up by
one line.
(22) - (23) Unused.
(24) Cursor Right - This command
moves the cursor non-destructively I
position to the right.
(25)-(28) Unused.
(29)
Home
- Homes the cursor in the
present window.
(30) Clear the
rest
of
line - clear from
present cursor position to the end
of
the line without affecting the cursor
position.
(31) Clear
rest
of
window - clears
from the present cursor position to
the
bottom
of
the Window without
affecting the cursor· position.
Installation
The first step is to make a
new
OS-65D
(version
3.2
or earlier)
diskette.
On
that
disk create three
files: a two-track file named
"8EXEC·",
a one-track file named
"VIDEO·",
and
a large file (10 tracks for
8",
15
for
mini's) named
"VIDASM".
Write down
the track number where the file
"VIDEO*"
resides"on your disk.
You'll
need
it
later.
Boot the Assembler/Editor and enter
the assembly language program given
in Listing
2.
Change
the
origin address
on line #730 to reflect your system's
. memory size.
On
24K
systems,
it
should remain
at
$5800, on
32K
systems
set
it
to $7800, and on
48K
systems use $8800. Save this program
in
the
file named
"VIDASM".
Use
the
"W
command in the assembler to
protect
the
high end
of
memory
(ie.
"H5A00", "H7A00",
or
"H8A00")
and
assemble the file to memory
With
the
command
"A3".
If
the assembly
proceeds without error, save the
machine code to disk
With
the
command;
!SA
tt, I =xB00/5
where
Ott"
is
the
track number where
"VIDEO·"
resides and
"xB00"
is the
origin address
of
the code
(ie.
"5800",
"7800", or "8800").
Now,
leave the Assembler/Editor and
invoke
8ASIC.
Enter the
8EXEC·
program given in Listing
I.
Note
that
you'll have to also insert the track
number for
"VIDEO·"
in lines 10280
through 10300 as you did in the
above command. Finally, save
it
in the
file named
"8EXEC·"
(clever, eh?).
Run
this program and . the new video
driver will be installed and ready for
use. When you
want
to install the
video driver on other diskettes, just
transfer the files
"8EXEC·"
and
"VIDEO·".
I
.1
Comments to this Manuals