home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
pcmagazi
/
1985
/
04
/
red.bas
< prev
next >
Wrap
BASIC Source File
|
1986-02-14
|
10KB
|
154 lines
100 REM -- BASIC PROGRAM TO CREATE red.COM
110 OPEN "red.COM" AS #1 LEN = 1
120 FIELD #1,1 AS A$
130 CHECKSUM = 0
140 FOR I% = 1 TO 134
150 LINESUM% = 0
160 FOR J% = 1 TO 8
170 READ BYTE%
180 CHECKSUM = CHECKSUM + BYTE%
190 LINESUM% = LINESUM% + BYTE%
200 IF (BYTE% < 256) THEN LSET A$ = CHR$(BYTE%)
210 PUT #1
220 NEXT J%
230 READ LINECHECK%
240 IF LINECHECK% <> LINESUM% THEN PRINT "Error in Line";280 + 10 * I%
250 NEXT I%
260 CLOSE
270 IF CHECKSUM = 86086 THEN PRINT "Successful Completion!" : END
280 PRINT "COM file is not valid!" : END
290 DATA 233, 95, 2, 82, 69, 68, 105, 114, 768
300 DATA 101, 99, 116, 32, 40, 67, 41, 32, 528
310 DATA 49, 57, 56, 53, 44, 32, 68, 105, 464
320 DATA 99, 107, 105, 110, 115, 111, 110, 32, 789
330 DATA 65, 115, 115, 111, 99, 105, 97, 116, 823
340 DATA 101, 115, 32, 73, 110, 99, 46, 13, 589
350 DATA 10, 36, 0, 0, 0, 0, 0, 0, 46
360 DATA 0, 0, 0, 0, 0, 0, 0, 0, 0
370 DATA 0, 0, 0, 0, 0, 0, 0, 0, 0
380 DATA 0, 0, 0, 0, 0, 0, 0, 0, 0
390 DATA 0, 0, 0, 0, 0, 0, 0, 0, 0
400 DATA 0, 0, 0, 0, 0, 0, 0, 0, 0
410 DATA 0, 0, 0, 0, 0, 0, 0, 0, 0
420 DATA 0, 0, 0, 0, 0, 0, 0, 0, 0
430 DATA 0, 0, 0, 0, 0, 0, 0, 0, 0
440 DATA 0, 0, 0, 0, 0, 0, 0, 0, 0
450 DATA 0, 0, 0, 0, 0, 0, 0, 0, 0
460 DATA 0, 0, 0, 0, 0, 0, 0, 0, 0
470 DATA 0, 0, 0, 0, 0, 0, 0, 0, 0
480 DATA 0, 0, 0, 0, 0, 0, 0, 0, 0
490 DATA 0, 0, 0, 0, 0, 0, 0, 0, 0
500 DATA 0, 0, 0, 0, 0, 0, 0, 0, 0
510 DATA 0, 0, 0, 0, 0, 0, 0, 0, 0
520 DATA 0, 0, 0, 0, 0, 0, 0, 0, 0
530 DATA 0, 0, 0, 0, 0, 0, 0, 0, 0
540 DATA 0, 0, 0, 0, 0, 0, 0, 0, 0
550 DATA 0, 97, 98, 99, 100, 101, 102, 103, 700
560 DATA 104, 105, 106, 107, 108, 109, 110, 111, 860
570 DATA 112, 113, 114, 115, 116, 117, 118, 119, 924
580 DATA 120, 121, 122, 44, 59, 61, 9, 65, 601
590 DATA 66, 67, 68, 69, 70, 71, 72, 73, 556
600 DATA 74, 75, 76, 77, 78, 79, 80, 81, 620
610 DATA 82, 83, 84, 85, 86, 87, 88, 89, 684
620 DATA 90, 32, 32, 32, 32, 0, 10, 13, 241
630 DATA 82, 69, 68, 105, 114, 101, 99, 116, 754
640 DATA 32, 69, 114, 114, 111, 114, 32, 45, 631
650 DATA 32, 36, 73, 110, 99, 111, 114, 114, 689
660 DATA 101, 99, 116, 32, 80, 67, 45, 68, 608
670 DATA 79, 83, 32, 86, 101, 114, 115, 105, 715
680 DATA 111, 110, 36, 67, 111, 114, 114, 101, 764
690 DATA 99, 116, 32, 83, 121, 110, 116, 97, 774
700 DATA 120, 32, 105, 115, 58, 13, 10, 10, 463
710 DATA 82, 69, 68, 32, 91, 100, 58, 93, 593
720 DATA 91, 115, 111, 117, 114, 99, 101, 95, 843
730 DATA 112, 97, 116, 104, 93, 115, 111, 117, 865
740 DATA 114, 99, 101, 95, 102, 105, 108, 101, 825
750 DATA 110, 97, 109, 101, 91, 46, 101, 120, 775
760 DATA 116, 93, 32, 91, 100, 58, 93, 91, 674
770 DATA 116, 97, 114, 103, 101, 116, 95, 112, 854
780 DATA 97, 116, 104, 93, 36, 70, 105, 108, 729
790 DATA 101, 32, 78, 111, 116, 32, 70, 111, 651
800 DATA 117, 110, 100, 36, 84, 97, 114, 103, 761
810 DATA 101, 116, 32, 80, 97, 116, 104, 32, 678
820 DATA 78, 111, 116, 32, 70, 111, 117, 110, 745
830 DATA 100, 36, 13, 10, 111, 114, 32, 36, 452
840 DATA 83, 111, 117, 114, 99, 101, 32, 97, 754
850 DATA 110, 100, 32, 84, 97, 114, 103, 101, 741
860 DATA 116, 32, 68, 105, 115, 107, 32, 68, 643
870 DATA 114, 105, 118, 101, 115, 32, 67, 111, 763
880 DATA 110, 102, 108, 105, 99, 116, 36, 85, 761
890 DATA 110, 100, 101, 102, 105, 110, 101, 100, 829
900 DATA 32, 69, 114, 114, 111, 114, 58, 32, 644
910 DATA 80, 67, 45, 68, 79, 83, 32, 70, 524
920 DATA 117, 110, 99, 116, 105, 111, 110, 32, 800
930 DATA 53, 54, 72, 36, 10, 10, 13, 32, 280
940 DATA 46, 32, 46, 32, 46, 32, 65, 98, 397
950 DATA 111, 114, 116, 105, 110, 103, 10, 13, 682
960 DATA 13, 36, 32, 46, 32, 46, 32, 82, 319
970 DATA 69, 68, 105, 114, 101, 99, 116, 101, 773
980 DATA 100, 32, 116, 111, 32, 46, 32, 46, 515
990 DATA 32, 36, 32, 46, 32, 46, 32, 78, 334
1000 DATA 79, 84, 32, 82, 69, 68, 105, 114, 633
1010 DATA 101, 99, 116, 101, 100, 32, 46, 32, 627
1020 DATA 46, 32, 36, 32, 46, 32, 46, 32, 302
1030 DATA 97, 108, 114, 101, 97, 100, 121, 32, 770
1040 DATA 101, 120, 105, 115, 116, 115, 36, 10, 718
1050 DATA 13, 36, 186, 3, 1, 180, 9, 205, 633
1060 DATA 33, 180, 48, 205, 33, 162, 208, 1, 870
1070 DATA 190, 128, 0, 138, 12, 50, 237, 227, 982
1080 DATA 95, 139, 209, 70, 139, 254, 252, 172, 1330
1090 DATA 87, 191, 209, 1, 81, 185, 31, 0, 785
1100 DATA 242, 174, 227, 9, 187, 31, 0, 43, 913
1110 DATA 217, 138, 135, 238, 1, 89, 95, 170, 1083
1120 DATA 226, 229, 139, 202, 186, 2, 0, 187, 1171
1130 DATA 50, 1, 176, 32, 191, 129, 0, 243, 822
1140 DATA 174, 139, 247, 78, 65, 227, 34, 139, 1103
1150 DATA 251, 139, 193, 170, 172, 60, 32, 116, 1133
1160 DATA 1, 170, 224, 248, 41, 15, 227, 17, 943
1170 DATA 254, 15, 139, 254, 79, 65, 74, 131, 1011
1180 DATA 250, 0, 116, 5, 131, 195, 77, 235, 1009
1190 DATA 214, 128, 62, 50, 1, 0, 119, 6, 580
1200 DATA 186, 59, 2, 233, 216, 0, 190, 50, 936
1210 DATA 1, 172, 50, 228, 139, 254, 3, 248, 1095
1220 DATA 79, 139, 200, 176, 92, 253, 242, 174, 1355
1230 DATA 117, 6, 131, 199, 2, 235, 14, 144, 848
1240 DATA 131, 199, 1, 128, 62, 52, 1, 58, 632
1250 DATA 117, 3, 191, 53, 1, 137, 62, 204, 768
1260 DATA 1, 252, 190, 127, 1, 172, 60, 0, 803
1270 DATA 116, 36, 50, 228, 3, 240, 78, 172, 923
1280 DATA 139, 254, 60, 92, 116, 17, 128, 62, 868
1290 DATA 127, 1, 2, 117, 7, 128, 62, 129, 573
1300 DATA 1, 58, 116, 3, 176, 92, 170, 137, 753
1310 DATA 62, 206, 1, 235, 7, 144, 199, 6, 860
1320 DATA 206, 1, 128, 1, 186, 51, 1, 180, 754
1330 DATA 78, 185, 0, 0, 205, 33, 115, 6, 622
1340 DATA 186, 141, 2, 235, 105, 144, 139, 62, 1014
1350 DATA 204, 1, 190, 158, 0, 185, 13, 0, 751
1360 DATA 243, 164, 139, 62, 206, 1, 190, 158, 1163
1370 DATA 0, 185, 13, 0, 243, 164, 186, 51, 842
1380 DATA 1, 191, 128, 1, 180, 86, 205, 33, 825
1390 DATA 115, 44, 61, 3, 0, 117, 6, 186, 532
1400 DATA 156, 2, 235, 58, 144, 61, 5, 0, 661
1410 DATA 117, 11, 198, 6, 13, 2, 1, 232, 580
1420 DATA 66, 0, 235, 26, 144, 61, 17, 0, 549
1430 DATA 117, 6, 186, 184, 2, 235, 31, 144, 905
1440 DATA 186, 223, 2, 235, 25, 144, 198, 6, 1019
1450 DATA 13, 2, 0, 232, 38, 0, 180, 79, 544
1460 DATA 185, 0, 0, 205, 33, 115, 3, 235, 776
1470 DATA 3, 144, 235, 154, 205, 32, 82, 180, 1035
1480 DATA 9, 186, 14, 2, 205, 33, 180, 9, 638
1490 DATA 90, 205, 33, 180, 9, 186, 4, 3, 710
1500 DATA 205, 33, 205, 32, 185, 2, 0, 187, 849
1510 DATA 51, 1, 139, 243, 172, 60, 0, 116, 782
1520 DATA 8, 138, 208, 180, 2, 205, 33, 235, 1009
1530 DATA 243, 131, 249, 2, 117, 27, 128, 62, 959
1540 DATA 13, 2, 0, 116, 10, 186, 50, 3, 380
1550 DATA 180, 9, 205, 33, 235, 51, 144, 186, 1043
1560 DATA 26, 3, 180, 9, 205, 33, 235, 41, 732
1570 DATA 144, 128, 62, 13, 2, 0, 116, 26, 491
1580 DATA 186, 75, 3, 180, 9, 205, 33, 128, 819
1590 DATA 62, 208, 1, 3, 115, 12, 186, 178, 765
1600 DATA 2, 180, 9, 205, 33, 186, 156, 2, 773
1610 DATA 205, 33, 186, 95, 3, 180, 9, 205, 916
1620 DATA 33, 131, 195, 77, 226, 164, 195, 0, 1021