home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
64'er 1987 June
/
64er_Magazin_87-06_1987_Markt__Technik_de_Side_B.d64
/
pfox+
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
2KB
|
121 lines
100 :
105 ifa<>0thengoto265
110 :
115 rem init
120 :
125 leta=1
130 lettwo$=chr$(34)
135 printchr$(14)
140 printchr$(147)
145 poke53280,15
150 poke53281,15
155 poke646,11
160 :
165 print"[198]ertig? ([211][208][193][195][197]-[212]aste)"
170 poke198,0
175 wait198,1
180 poke646,6
185 :
190 rem backup printer.old
195 :
200 print"[204]ege [211]icherheitskopie";
205 print"von ";two$;"[208][210][201][206][212][197][210]";
210 printtwo$;"an"
215 open15,8,15
220 print#15,"c:printer.old=printer"
225 close15
230 gosub640
235 :
240 rem load printer
245 :
250 print"[204]ade [207]riginalfile";
255 printtwo$;"[208][210][201][206][212][197][210]";two$
260 load"printer",8,1
265 gosub640
270 :
275 rem modify hi-quality
280 :
285 print"[205]odifiziere";two$;
290 print"[208][210][201][206][212][197][210]";two$;"im [210][193][205]"
295 poke24686,128
300 poke24687,99
305 poke24948,159
310 poke24949,99
315 poke24965,159
320 poke24966,99
325 letadr=25426
330 readaa
335 ifaa<0thengoto355
340 pokeadr,aa
345 letadr=adr+1
350 goto330
355 letadr=25472
360 readaa
365 ifaa<0then390
370 pokeadr,aa
375 letadr=adr+1
380 goto360
385 :
390 rem modify lo-quality (star nl-10)
395 :
400 poke24819,36
405 poke24843,36
410 poke24971,81
415 ifpeek(25442)=23thenpoke25442,24
420 :
425 rem scratch printer
430 :
435 print"[204]oesche [207]riginalfile";
440 print"auf [196]isk"
445 open15,8,15
450 print#15,"s:printer"
455 close15
460 gosub640
465 :
470 rem save modified printer
475 :
480 poke781,208
485 poke782,99
490 poke167,0
495 poke168,96
500 poke780,167
505 print"[211]chreibe modifiziertes";
510 print"[198]ile auf [196]isk"
515 open1,8,3,"printer"
520 sys65496
525 close1
530 gosub640
535 :
540 rem exit
545 :
550 poke646,11
555 poke198,0
560 end
565 :
570 rem datas
575 :
580 data013,000,051,027,-1
585 data032,184,096,036,098,016,023,162
590 data003,189,082,099,032,179,098,202
595 data016,247,169,001,133,025,032,184
600 data096,169,000,032,159,099,096,072
605 data036,098,048,004,104,076,136,097
610 data165,025,048,248,240,246,036,025
615 data112,008,009,064,133,025,104,133
620 data015,096,169,000,032,179,098,032
625 data179,098,104,072,037,015,032,179
630 data098,104,133,015,096,000,-1
635 :
640 rem sub disk-error
645 :
650 open15,8,15
655 input#15,b,b$
660 poke646,2
665 print"[196]isk-[211]tatus:";
670 printb$
675 poke646,6
680 close15
685 :
690 return
695 :