1
00
A=IJSR
(~"
8B86" ,
0)
110 A=42572:
POKE
A,I:
POKE
A+l,2:
POKE
A+2,255
120
FOR
1=0
TO
29
130
POKE
300+1,
PEEK(:35960+l)
140
NEXT
I
150
POKE
331),%
160
PRINT
"AFTER
'LOADED"
ME:SSAGE,
ENTER:"
170
PRINT
"POKE
125,PEEK(254):
POKE
126,PEEK(255):
CLEAR"
180
PRINT
IJSROOO,a,"C6C5",&"8CAC",
I))
OK
KIM
To
SYM
Transfer
In
order
to load
KIM
formatted
BASIC
programs
in-
to
your
SYM
you
will
need
to
have
a copy
of
the
KIM
BASIC
PROGRAM
LOADER
listed with this
article. Save this
program
on
tape
(in
high
speed for-
mat,
of
course) so
that
you
will
have
it
whenever
you
need
it.
NOTE:
This
program
will
not
work
with
Monitor
Version
1.0
which
has
an
error
in
the
KIM
Load
routine.
STEP
1:
On
the
KIM,
save
the
program
to
be
transferred
in the
normal
manner;
but
make
sure
it
is
saved
at
the
original
tape
low speed.
STEP
2: Initialize
BASIC
on
your
SYM
and
LOAD
and
RUN
the
KIM
BASIC
PROGRAM
LOADER.
STEP
3:
Play
the
tape with the
KIM
program
in
your
recorder.
If
you
have
implemented
a second
cassette
control
for
your
read-only
recorder
you will
have
to
over-ride
it since this
program
will only ac-
tivate the original cassette control.
STEP
4:
After
the
LOADED
message,
enter
the
command
printed
by
the
program
and
then
SAVE
a
copy
of
the
KIM
program
in
high
speed
format.
In
case you get a
BAD
LOAD
message,
start
over
again
at
STEP
2.
SYM/KIM BASIC Incompatibilities
The
obvious
hardware
related
incompatibilities
due
to different
address
availability in
the
two systems re-
quire
careful use
of
the
PEEK,
POKE
and
USR
commands.
Of
course, different
terminals
may
also
have
special
requirements
for
cursor
controls
or
graphics capabilities.
Not
so obvious
are
the
follow-
ing
additional
potential
problem
areas.
GO:
SYM
treats
GO
as a
reserved
word
so
don't
enter
GOTO
as two words. Also
make
sure
that
GO
does
not
appear
in
any
variable
names
such
as
DRAGON.
GET:
SYM
does not
implement
this function
but
it
does reserve the
same
token
as
KIM.
(See
MICRO
24:15
if
you
want
to
implement
GET
on
your
SYM.)
USR:
The
multiple
parameter
versions
of
USR
will
not
work
on
the
KIM.
The
single
parameter
version
will
require
a different set
of
POKE
commands
prior
to the
USR
but
otherwise it works
the
same
in
both
systems.
&
"ABeD":
KIM
does
not
support
hexidecimal
notation.
140
Load
And
Save
KIM BASIC
Programs
OnYourSYM
George
Wells
LaVerne, CA
The
SYM
and
KIM
microcomputers
are
close
cousins.
Their
hardware
and
tape
interface
com-
patibilities
are
well
known.
Not
so well
known
is
the
fact
that
the
BASIC
interpreters
on
the two systems
use the
same
tokens for
their
reserved keywords
which
makes
transfer
of
BASIC
programs
between
the
SYM
and
KIM
almost
trivial.
Mike
Hanna,
a friend
of
mine
who
has
had
a
KIM
with
BASIC
for
much
longer
than
I
have
had
my
SYM
with
BASIC,
has
offered to
share
his
library
of
BASIC
programs
with
me.
We
had
con-
sidered
implementing
a
telephone/modem
interface to
accomplish this
transfer
but
after
comparing
the
disassembly listings
of
the
two
interpreters
we decid-
ed
a
tape
transfer
would
be
easier.
The
scheme
we
finally settled
on
allow's
the
SYM
to
create
and
read
tapes in
the
original
low speed
KIM
format
since the
SYM
does
not
support
any
of
the faster versions.
Going
from the
SYM
to the
KIM
is
particularly
sim-
ple; going the
other
way
requires
a
short
BASIC
pro-
gram
(see listing).
SYM
To
KIM Transfer
STEP
1:
Load
the
BASIC
program
to
be
transferred
into the
SYM.
STEP
2:
Exit
BASIC
and
return
to the
Monitor
(by
way
of
reset, for
example).
STEP
3:
Determine
the
end
of
the
BASIC
program
by
examining
the two-byte
pointer
stored
at
$7D/$7E
by
entering.V
7D-7E.
The
SYM
will
respond
with:
007D
uv
wX,yz
where
wxuv
is
the
end
of
the
program
(qrst)
plus
one.
The
monitor
will calculate
qrst
for
you
if
you
can't
do it
in
your
head
by
entering
.C
wxuv-1.
STEP
4:
Save
the
program
on
tape
in
KIM
format
by
entering:
.Sll,201-qrst
where
qrst
is
the value from
STEP
3.
STEP
5:
Load
the
program
into
KIM
BASIC
in
the
normal
manner.
COMPUTE!
LIST:
REM
KIM
BASIC
PROGRAM
LOADER
February.
1981.
Issue 9
Kommentare zu diesen Handbüchern