Operator`s manual

),
GETTING
STARTED
ALLOCATING
MEMORY
The very
lirst.decision
you
must
make when you
sii
down to write your
source
program
involves
the
allocation
ofmcDlory
spac.
All p,
ogram".
,lgdrdlpss ,,f
l"ngu"ue.
occrrpl me
,ory
\p4ce.
rhe(.ompurerha"
a rrmrrc(l
drnounl ot
,npmory
and
mu5t manr.'F
iti
merno|v
.dr.full\
. alloLJlmu
p " r t i o n "
o f m . r , r o l J
r o r p r o g r d m . d r r a . d r . p i r y " f , a , " . r , , d . o r o l t .
r r . , . ; , , i i
donr
automdlRatly
in BASIC.
c,,
rhc
BASIC
u".r nced nor
worcv
about $ hele
in
nremury
lri.
p'ogrJm
and dara
drc,tored.
Su.h is nor quire rie
crsc rvirh
rhe
As.emblpr
LdIor
c"r'rridge.
y,,u
hare
Jhe powpr
ro
ptlrlF
vour
L,ruerams
rnJ whei
e in me
ory, har you
dcn.e.
u irh
rhF
po-",
,oln.sr6.,.sp;n,i"b,tirl.
to
allocatc menor.v
iviselv,
rhe araRr
conputer
syU."
*""
a* -"--"
tbr its
own internat
Deeds. The
an,ounr rr
urFs,lepcnds
un $hprlrcr
o. nor DOr
is loJIed
ir,ro RA]\1.
ln anv
F v e , , r .
' h c
A r " c n r b F r
f , d i r o . , d r r r i d g F $ r
a u r o m a r i , J t y p l a , e v o u r
s , u r c c
p r J _
g ' " m
i n r o
' h e
c h u n k
o f m c r n o , v
, r J
i n g w i r h
r h e
f i r . j i r . . ; " m o r "
t , . . r | i o n .
As.you
typ in
more source
code,
the memorlr
allocated
io storing
your
source
.odc
'.a
ed r h-
.
Ldir TF\r
Bufrerj
,
gro$
". tfyou
dcl"re
tinFs
or
.o;r
(
F ,
.,de,
rh.
c d i r r p \ r
b u f T ( r . l r r i n k . .
y o u , r n
v i s u a t i z F
r t , p m F m o r )
r o , , r r o n \ v i r h
r h i "
figure,
which is
called
a memofy
map:
DOS
os
180
EditToxt
Bufter
Empty Display
BAU
EigtJre
2. Mernorynap
without
rtse
of LOMEN.
'I
he e l i i r
tr xr huti.r
ilwry. gros.
lo\vrrd"
lhp r.isht, I
o r h e
..emo
ar
pa.
The
lpfr riJe
or rhe
eJir r F r r
Lr
rfIpr
i. f i r c a
in
pta, .
on.e vou
lr,u.r
.nr.riie
Your pfobleD,
is r,, dcr.rmine
wl)erF
ro,rore
Jhc
obip, rLod,
Dr,,(lu(.ed bv rhe
A."embler.
lfyou
nur
rhF,,hjecr
codF i n l o
rhF rcgio'nq
m.rk;d os
RAM,
DOS
R A M .
o r d . . p l a v
R A M .
) o u
$ i l . p f o l r l l '
J
c , r r r " .
r h . c o m p u r e r
r . , r " " h , , n d a t l
y o J r . l y p i n g
\ \
i l l b e l o " l .
l f y , , u p u r
i r i n r o
r h F
p t d c ,
c r
" , t
r h . e d i r
r p \ r b u r t ; r ,
'hc
obiccr
,
o,le
will
ovcfwri
e r h e s , , u r
r'e , o d e . ,:
sin{ m o , c .hdo!.
.i
Le unlv
s i r i p l d . e
r u
t , ,
) o l r . o b j e . r
,
u . t c i s i n r h c . ? m p , v
r , ) e ; , , , y . . i r . , .