EasyManuals Logo
Home>Casio>Desktop>FX-795P

Casio FX-795P User Manual

Casio FX-795P
133 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #57 background imageLoading...
Page #57 background image
5-4
Method
of
Calculating
the
Program
Length
lie
ae
ance
ccc
area
used
for
programs
and
DATA
BANK
is
The
maximum
capacity
of
the
free
d
data
are
written.
(The
15584
bytes.
This
free
area
decreases
as
programs
an
pper
part
of
the
display
in
the
WRT
mode
indicates
the
figures
shown
at
the
w
ytes.)
The
number
of
bytes
required
to
write
programs
remaining
number
of
b
and
data
are
calculated
as
shown
below.
Two
bytes
for
one
regardless
of
the
number
between
1
to
9999.
One
byte
for
one
command.
One
byte
for
one
function.
One
byte
for
one
character
(a
space
will
also
be
con-
sidered
a
character.)
One
byte
will
be
required
when
the
@3
key
is
pressed
@
Line
number
@
Command
......--
e@
Function......---
e@
Character
.@
at
the
end
of
a
line.
@
If
an
array
variable
is
declared
with
a
DIM
statement,
eight
bytes
will
be
required
for
one
array
element.
e
If
the
number
of
variables
is
expanded
with
the
DEFM
statement,
eight
bytes
will
be
required
for
each
variable
expanded.
ting
up
a
long
program,
it
will
be
When
using
many
array
variables
or
when
set
according
to
the
above
calcula-
necessary
to
consider
the
length
of
the
program
tions
and
to
trim
any
unnecessary
portions.
100
5-5
Convenient
Techniques
Following
are
two
techniques
that
are
convenient
to
know
when
programming.
©
Using
the
Program
Areas
This
unit
is
provided
with
ten
program
areas
(PO
to
P9)
into
which
individual
programs
can
be
stored.
One
method
of
using
these
areas
is
to
locate
the
main
routine
in
one
program
area
and
the
subroutine
in
the
other
area.
A
simple
exaimple
is
shown
below.
Example:
Program
area
PO
(Main
routine)
19
X=12
2@
PRINT
3@
PRINT
CSRX3*@";
4@
GOSUB
#1
5@
GOTO
2e
6@
END
Program
area
PI]
(Subroutine)
18
KS=KEYS
20
IF
K$=*4”
THEN
X=X—-1:
IF
X<@
THEN
X=O
30
IF
K$=*6"
THEN
X=X+1:
IF
X>23 THEN
X=23
4@
RETURN
When
the
main
routine
in
PO
is
executed,@(unit
price
mark)
appears
at
the
center
of
the
display.
Press
the
(4)
key
to
move@to
the
left
and
the
G)
key
to
move@
to
the
right.
These
are
the
only
keys
that
can
move@.
In
this
program,
the
main
routine
in
PO
displays@and
the
subroutine
in
PI
cal-
culates
the
moving
position
of@by
key
input.
The
subroutine
in
P1
is
accessed
by
GOSUB
#1
on
line
40
of
the
main
routine.
This
method
of
allocating
routines
with
coherent
functions
in
one
program
area
facilitates
the
usage
of
long
programs.
101

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Casio FX-795P and is the answer not in the manual?

Casio FX-795P Specifications

General IconGeneral
BrandCasio
ModelFX-795P
CategoryDesktop
LanguageEnglish

Related product manuals