A
ll
and more about Sharp P
C-
1500 at http://www.PC-1500.info
Notice that
the
space between Y
and
J was
stored
and
that
the
" (double
quote)
characters
were not. The
double
quotes serve as
"de
limiters." a guide to indicate what
oth
er characters
will be stored.
Any
character (including spaces). except the double
quote
itself, may be stored.
This
sequence
of characters
enclo~ed
by
double quotes
is
called a character
"strin.g"
and c
hara
c
ter
variables are
often
referred
to
as "string variables." Each character variable can hold up
to
16
characters.
Some caution must
be
used
in order not to
exceed
this limit or information will
be lost. This
is
demonstrated
by
the following assignment which unintentionally normalizes
John's
eating habits. Type:
F$
=
"JOHN
EATS BUTTERFLIES"
Now recall
the
information: m m I ENTER
I.
Some change!
One
fi
n
al
point
to remember about
va
riables: they have the memory
of
an
elephant. lnforma·
tion r
emains
stor
ed
in
a
va
r
iable
un
ti
l:
1) Another Assignment statement
is
executed for
the
same variable.
2) A
NEW
or
CLEAR command
is
given.
3) A program is run using
the
RUN
command.
4)
The
computer's
batteries are changed.
The
value
of
a variable
is
even
retainc<.l
when
the
power is turned
off
I Test this
by
turning SHARP
off,
then
on.
In
RUN mode, ask for the
va
lue
of
G {Type
QD
l<•
T<
•I
).
Impressi
ve,
eh? As
you begin to
program in the
next
chapter, you will find variabl•s
am
indispensable.
J. We Pause
...
(without station identification)
Congratulations!
If
you
have perservered
to
this point, you now
know
the fundamentals
of
the SHARP
PC
.
1500
well enough to perform a wide variety
of
calculations. Because
the
PC-1500
is
so
ve
r
s.at
ile, each reader will find
ma
ny
uses
fo
r it in h
is
ow
n fields
of
intere
st.
No
matte
r'
what
your
application is. however,
you
will eventually want to learn programming ;n order to fully
exploit the power
of
this amazing machine.
At this point
you
have a choice. For those
whose
hearts have quickened,
whose
breathing
is
more rapid at
the
thought
of
programming (and for anyone
not
yet
asleep). we request that
you
to
go
back and read Chapter
O,
integrating
your
new knowledge with the information there.
Then proceed to Chapter 3.
Other readers,
who
have an immediate need
to
use
such features as
scientific
notation
and
trigonometric functions, may proceed directly
to
t
he
chapter
on
Advanced Calculations.
SUMMARY
1)
Modes - The SHARP PC· 1500 operates in
one
of
three
diflerent modes:
RUIN,
PROgram, and
RESERVE. Each change in mode causes
a slightly different change in internal function,
analogous
to
shifting gears in a car. The
RUN
mode
is
for calculations and
is
the
mode in which
you
must
"run"
(execute) programs. In the PROgram mode, all writing and ed iting (additions
and
corrections)
of
programs
is
performed.
2) Calculations
- SHARP performs common arithmetic calculations in
the
RUN mode. The CL
(clearl
key
should
be
pressed before each calculation
to
clear
the
results
of
a previous calcula·
tion. NOT pressing
the
Clear
key between c.alculations allows a series
of
calculations utilizing
the
result
of
the
immediately precceding calculation.
24
Do
not sale this PDF
!!!