3. VC20-BASIC
3.1 U e b e r b l i c k
Im folgenden wird d i e VC20-Version d e s CBM-BASIC b e s c h r i e b e n . S i e
l e r n e n das S c h r e i b e n und d i e Syntax d e r BASIC-Anweisungen kennen.
Jeder
e i n z e l n e B e f e h l
e r l a e u t e r t . S c h l i e s s l i c h w i r d d i e Datenein- und - a u s g ä b e anhand von
Beispielprogrammen d e t a i l l i e r t b e s c h r i e b e n .
3.2
CBM-BASIC
3.2.1
I n i t i a l i s i e r u n g des Rechners
Die
I n i t i a l i s i e r u n g
e r f o l g e n ,
d i e a l l e
f u e h r e n :
1.
2.
3.
E i n Warmstart, der d a s g g f s . im S p e i c h e r b e f i n d l i c h e Programm n i c h t
l o e s c h t ,
kann
RESTORE-Taste a u s g e l o e s t werden.
**** CBM BASIC V2 ****
3583 BYTES FREE
READY.
Abb. 3.1: I n i t i a l i s i e r u n g s a n z e i g e
w i r d
b e s c h r i e b e n
des Rechners kann a u f d r e i v e r s c h i e d e n e Weisen
z u r s e l b e n
E i n s c h a l t e n d e s Rechners
e i n e n d e f i n i e r t e n Ausgangszustand und
s i e r t
d i e V a r i a b l e n d e s B A S I C - I n t e r p r e t e r s und
des
B e t r i e b s s y s t e m s .
Das R u e c k s e t z s i g n a l kann
E i n s c h a l t e n des Rechners durch e i n e n S c h a l t e r am
S p e i c h e r e r w e i t e r u n g s a n s c h l u s s g e n e r i e r t werden.
Durch e i n e n Unterprogrammsprung ( S Y S ) a u s einem
BASIC-Programm
des
B e t r i e b s s y s t e m s .
durch
g l e i c h z e i t i g e s
und an k u r z e n B e i s p i e l e n
B i l d s c h i r m a n z e i g e
s e t z t
ohne Aus- und wieder
i n d i e I n i t i a l i s i e r u n g s - R o u t i n e
Druecken
38
( s . Abb. 3.1)
d a s System i n
i n i t i a l i -
der STOP-
und der