EasyManua.ls Logo

Commodore MPS 1200 - Page 116

Commodore MPS 1200
250 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Define
Vtab
Channel
BASIC
chr$(27)
"b"
chr$(N)
chr$(n1)
chr$(n2)
....
chr$(O)
(N
= 0
to
7;
n = 1
to
255)
Hex
1 B
42
Nh
n1
h
n2h
............
00
Nh
=
OOh
to
07h;
nh
=
01
h
to
FFh)
To
use vtab channels,
you
must
first
define
the vtabs for each
channel
you
want
to use.
To
do this, send the
MPS
1200
ESC
b
followed
by
the ASCII code for the channel
number,
from 0 to
7,
followed
by
the ASCII code for the line
number
of
each vtab
position
you
want,
from
1
to
255. After the last position, send
chr$(O) to end the sequence.
For example
to
define
channell
to
contain vtabs at lines
6,
10, and
14, and channel 2 to contain vtabs at lines 4,
7,
17, and 38, send the
commands: chr$(27)
"b"
chr$(l) chr$(6) chr$(lO) chr$(14) chr$(O)
and chr$(27)
"b"
chr$(2) chr$(4) chr$(7) chr$(17) chr$(38) chr$(O).
Channel 0
is
the default channel. Unless
you
tell it otherwise, the
MPS 1200 will use the vtabs that are defined in that channel. (Vtabs
set
with
the
command
ESC
B are automatically placed in channel
0). Vtab channels are selected
with
the
ESC
j
command,
described
and illustrated below.
Select
Vtab
Channel
BASIC
chr$(27)
"j"
chr$(n)
(n
= 0
to
7)
Hex
1B
2F
nh
The
vtab channel
is
defined
with
the
ESC
b
command
(described
above). A vtab channel
is
a set
of
up
to
16 previously defined vtabs.
Up
to eight channels,
numbered
0 to 7, can be defined.
To
select
a
vtab channel, use the
command
ESC
j followed
by
the ASCII code
for the
number
of
the channel you want, from 0 to
7.
For example,
to select vtab channel 2, send chr$(27)"1" chr$(2). Any subsequent
vtab
command
will use the vtabs defined in channel
2.
5-14

Related product manuals