Herunterladen Inhalt Inhalt Diese Seite drucken

.1.1 Beispielprogramm F U E R D I E Tonerzeugung; Der B I L D S C H I R M E D I T O R - Commodore Computer Volkscomputer Vc-20 Programmierhandbuch

Inhaltsverzeichnis

2.7.1.1 Beispielprogramm f u e r d i e Tonerzeugung

Das
folgende
Beispielprogramm
der VC20 b e i d e r Tonerzeugung b i e t e t :

2.8. Der B i l d s c h i r m e d i t o r

Nachdem S i e b i s j e t z t e i n i g e Erfahrungen m i t dem A b b i l d e n
aendern von Zeichen a u f dem B i l d s c h i r m sammeln k o n n t e n , w o l l e n w i r
im folgenden d i e E i g e n s c h a f t e n des V C 2 0 - B i l d s c h i r m e d i t o r s im D e t a i l
b e s c h r e i b e n .
Kernstueck
des B i l d s c h i r m e d i t o r s s i n d d i e C u r s o r - S t e u e r t a s t e n , m i t
denen d e r Cursor
b r a c h t
werden kann, um Zeichen
u e b e r s c h r e i b e n .
werden d u r c h d i e Cursorbewegungen n i c h t v e r a e n d e r t . D i e folgenden
v i e r F u n k t i o n s t a s t e n d i e n e n d e r C u r s o r s t e u e r u n g :
Jede d i e s e r
T a s t e n
SHIFT-Taste m i t g e d r u e c k t
d r e i T a s t e n w i r d a u t o m a t i s c h solange w i e d e r h o l t , wie d i e j e w e i l i g e
T a s t e n i e d e r g e h a l t e n w i r d . Anhand d e r im folgenden
S c h r i t t e koennen S i e s i c h m i t den S t e u e r t a s t e n und i h r e r
v e r t r a u t machen:
S c h r i t t
1:
S c h a l t e n S i e I h r e n Computer a n .
S c h r i t t
2:
Druecken S i e d i e CLR/HOME-Taste. Der C u r s o r
d i e l i n k e obere B i l d s c h i r m e c k e g e s t e l l t .
S c h r i t t
3:
Druecken
CLR/HOME-Taste. Der B i l d s c h i r m wird g e l o e s c h t .
S c h r i t t
4:
Geben S i e j e t z t d a s Alphabet e i n . Beachten S i e , dass
der
den
Z e i l e
Eingeben e i n e n F e h l e r gemacht haben, s o d r u e c k e n S i e
d i e
l o e s c h t w i r d , und geben dann w e i t e r e i n . Zum S c h l u s s
z e i g e n
f o l g e n d e s
s o l l
10 A=36874
20 POKE A+4,15
30 FOR K=2 TO 10
40 FOR 1=1 TO 10
50 POKE A,232+K*SIN(I)
60 FOR J=0 TO 100:NEXT J , I , K
70 POKE A+4,0
80 GOTO 10
a u f j e d e b e l i e b i g e P o s i t i o n des B i l d s c h i r m s ge-
Z e i c h e n
d i e b e r e i t s
CLR/H0ME
CRSR r a u f / r u n t e r
CRSR l i n k s / r e c h t s
INST/DEL
h a t zwei F u n k t i o n e n ,
wurde oder n i c h t . Die F u n k t i o n d e r l e t z t e n
S i e b e i n i e d e r g e h a l t e n e r
C u r s o r , nachdem S i e das V eingegeben haben, auf
Anfang
d e r n a e c h s t e n
n u r 22 Zeichen
INST/DEL-Taste, wodurch das f a l s c h e
d i e e r s t e n
B i l d :
z e i g e n , welche
zu l o e s c h e n , e i n z u f u e g e n
a u f dem
abhaengig davon, ob d i e
Z e i l e
aufnehmen kann. Wenn S i e beim
beiden
Z e i l e n
32
M o e g l i c h k e i t e n
und Ver-
oder zu
B i l d s c h i r m
s t e h e n ,
b e s c h r i e b e n e n
F u n k t i o n
w i r d i n
S H I F T - T a s t e
w e c h s e l t ,
da jede
Z e i c h e n ge-
I h r e s
B i l d s c h i r m s
d i e
Inhaltsverzeichnis
loading

Verwandte Produkte für Commodore Computer VolksComputer VC-20

Inhaltsverzeichnis