Herunterladen Inhalt Inhalt Diese Seite drucken

Commodore MPS-803 Bedienungshandbuch Seite 23

Matrixdrucker
Inhaltsverzeichnis

Werbung

19
Vers u c h e n Sie auch hie r w i e d e r die beiden Pro g r a m m b e i s p i e l e :
Das erste B e i s p i e l
st ellt w ieder drei D r u c k t y p e n her,
d iesmal im G r o s s / K l e i n -
s c h r i f t m o d u s :
BEISP I E L
1:
10ö r• ern sa=7. . .Printi n 9 in business mode
110 oPer.7,4,7
120 Print#7 . - "secondary address 7"
130 ai="Print.ins in business mode"
140 Pr int #7.. ai
150 Print#7,123456739
160 for i=64 to 95
170 Print#7,chr$<i>;
130 next i
190 P rint#7
200 for j=l to 3 :Print# 7 :next d i
210 close7
ready.
RUN
secondary address 7
Printin3 in business mode
123456739
Öabcdef 3h i s i K 1 mnoP «Lrstuyuxys
Z
£ 3 T+-
Das zweite P r o g r a m m b e i s p i e l druc k t eine A S C I I - C o d e - T a b e l l e im G r o s s / K l e i n -
s c h r i f t m o d u s . ASCI I $ 0 0 - $ l F u nd S8 0 - S 9 F sind s p e z i e l l e Kontrol l z e i c h e n ,
die in
dies e r T a b e l l e nic ht m i t g e d r u c k t werden.
B E ISPIEL 2:
10 0 r e m s a=7. . .Pri n t i n 3 i n t > u s . i n e s s r n o d e
110 oPer.7,4,7
120 sPi=" "
130 ai="0123456739abcdef"
140 P rint#7,sP i ;sP i ;
150 for i=0 to 15
160 P rint#7,midi C a i , i +1, 1 > ;s P i ;
170 next i
130 Print#7
190
200 for i=0 to 15
210 P r i r.t#7, r n i di < a i ,¿+1,1 > sP i
220 P r i nt#7, sP i ; sP i s P i ; sP i
230 P r i r«t#7, ehri C ■ > +32 > ; sP i ; chri < - i +43 > ; sP i ;
240 P r• i n t # 7, c h i - i ■ : !
i
+ ■ 6 4 > , s P i c h r i > : ! . . i + 3 0 > s P i
250 P r i nt#7, chri < . ? +96
sP i c h r i > : ! . . i +112 > sP i
260 P r i nt # 7 , sP i s P i s P i s P i
270 P r i nt # 7 , chri i - i +160 > sP i c h r i < j +176 > ; sP i
230 P r i n t # 7 , chri • : ! - i +192 > sP i j chr i • : ! - i +203 > sP i ;
290 P r - i n t # 7 , chri < ? +224 > sP i ; chri <
i
+240 >
300 next - i
310 for K— 1 to 7 :Print# 7 :next K
320 close7
read y

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis