Viper 2.08 User's Guide Page 38

  • Download
  • Add to my manuals
  • Print
  • Page
    / 53
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 37
fhe
following
information
is
useful for
programs
r
,
maehine
language
f)
The
Ml,
subroutine
program
counter
is
register
5.
Z) Use
only
registers
R?, RA,
RB, RC, RD,
RE,
and
RF
3)
R5.1
conti
be
"rt"""ii""tlt8olage
address of
the
variables
and
must
not
4)
fhe
display
starts
at
location
1OOO
(one
page)
5)
The'variables A-Z
start at
location
ttU?
(two'bytes
per
variable)
6)
The
aruay A
starts
as the
free
address
in
11BE
7)
The
stack
occupies
the
last
page
of
memory
and
the
low order
portion
may be
used
for storage.
(Page
address
RZ.1)
8)
The BASIC
source
program
starts
at
IZOA,
LITTLE
LOOPS
by
Tom Swan
PRII\M
TIIIIE
They
just
finished building a bul-lring
right
below
our
window
it's
painted
bright
red
and
yellow
and
orange,
and
it's the
icing on
the
cake
of our
now brown
Mexican
countryside.
Here
they
do not have bloody Spanish
bullfights
'chey
are
more like
rodeos
though
there
is far more
drinking,
taco
eati-ng,
laughing
and
shouti-ng
in
the stands than ther:e
is
action
in
the
ring.
-
This
has
absolutely
nothing to d.o
with
this
month's
column,
unl-ess
you
want
to
compare a
Mexican's interest
in rodeos with
my
interest
in
BASIC
language
programming.
Every
eouple of
weeks
they
have a
rod.eo,
then
everybody
goes
back
to
normaL. Every
once
in
a
while, I write a
program
in
BASIC
(even
on our
new
"baby"
in
the
house, a^n
APPLE
II,
I'm more
interested
in
machine
language
progiamrning.
)
Problem
is,
I seldom
go
back to
normaL.
I donlt
want
to
sound too
"ho-hum"
about
BASIC.
It
offers a
good
way
to learn
prograrnming
and
judging
from
the
number
of
read.ers
letters
and
articles
this
month,
a
lot
of
you
own
VfP Tiny BASIC
Board.s.
iHtp-8
is
also an
excellent
languige for cutting-your
programming,teeth.
Though
it
lacks
the
readability
of a
d.ocumented
BASIC
program,
it
is more
suitable
for
use
on a
VIP computer.
.
the
following
program
is
straight from
an
algorithm
(that
means
a
procedure
or
plan
for a
programming
task)
from Vol
1
of The
Art of'
Computer
Programming
by Donald E.
I(nuth
r
page
143, It
generates
a
list
of
prime
numbers
as
many
as
you
ask
for
up
to
the
limits
of
your
il€rrorlr variables size,
and
patience.
One
interesting
line
(#ttto)
gives
the
remainder
after a
division
provi.ding
the
function X
MOD Y which
is
not in
Tiny
BASIC's vocabulary.
You
may
leave the
REM's
(remarks)
out
without
affeeting
the
program
Notice that
the
little
b's
with
lines
through them
are spaees
(b).
writing
2,OB/ag,
38
Page view 37
1 2 ... 33 34 35 36 37 38 39 40 41 42 43 ... 52 53

Comments to this Manuals

No comments