home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
pcmag
/
vol5n03.arc
/
DOS-EDIT.BAS
< prev
next >
Wrap
BASIC Source File
|
1987-12-13
|
7KB
|
97 lines
100 REM -- BASIC PROGRAM TO CREATE DOS-EDIT.COM
110 OPEN "DOS-EDIT.COM" AS #1 LEN = 1
120 FIELD #1,1 AS A$
130 CHECKSUM = 0
140 FOR I% = 1 TO 77
150 LINESUM% = 0
160 FOR J% = 1 TO 8
170 READ BYTE%
180 CHECKSUM = CHECKSUM + BYTE%
190 LINESUM% = LINESUM% + BYTE%
200 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 = 59165 THEN PRINT "Successful Completion!" : END
280 PRINT "COM file is not valid!" : END
290 DATA 233, 46, 2, 40, 67, 41, 32, 67, 528
300 DATA 111, 112, 121, 114, 105, 103, 104, 116, 886
310 DATA 32, 49, 57, 56, 53, 32, 90, 105, 474
320 DATA 102, 102, 45, 68, 97, 118, 105, 115, 752
330 DATA 32, 80, 117, 98, 108, 105, 115, 104, 759
340 DATA 105, 110, 103, 32, 67, 111, 46, 0, 574
350 DATA 0, 0, 0, 0, 0, 0, 0, 0, 0
360 DATA 128, 0, 0, 0, 0, 0, 0, 125, 253
370 DATA 2, 130, 2, 137, 2, 194, 2, 140, 609
380 DATA 2, 194, 2, 153, 2, 194, 2, 167, 716
390 DATA 2, 175, 2, 178, 2, 195, 2, 201, 757
400 DATA 2, 46, 198, 6, 55, 1, 0, 128, 436
410 DATA 252, 10, 116, 5, 46, 255, 46, 47, 777
420 DATA 1, 46, 198, 6, 55, 1, 255, 156, 718
430 DATA 46, 255, 30, 47, 1, 46, 198, 6, 629
440 DATA 55, 1, 0, 46, 198, 6, 58, 1, 365
450 DATA 0, 207, 251, 46, 128, 62, 55, 1, 750
460 DATA 0, 116, 13, 46, 128, 62, 58, 1, 424
470 DATA 0, 117, 46, 128, 252, 0, 116, 5, 664
480 DATA 46, 255, 46, 51, 1, 156, 46, 255, 856
490 DATA 30, 51, 1, 61, 0, 72, 117, 24, 356
500 DATA 232, 57, 0, 46, 128, 62, 58, 1, 584
510 DATA 0, 116, 234, 232, 33, 0, 46, 255, 916
520 DATA 6, 56, 1, 46, 254, 14, 58, 1, 436
530 DATA 207, 128, 252, 2, 115, 210, 128, 252, 1294
540 DATA 0, 116, 232, 232, 9, 0, 46, 128, 763
550 DATA 62, 58, 1, 0, 202, 2, 0, 83, 408
560 DATA 46, 139, 30, 56, 1, 46, 138, 7, 463
570 DATA 42, 228, 91, 195, 80, 83, 81, 82, 882
580 DATA 87, 30, 6, 140, 200, 142, 216, 142, 963
590 DATA 192, 180, 15, 205, 16, 254, 204, 136, 1202
600 DATA 38, 59, 1, 180, 3, 205, 16, 137, 639
610 DATA 22, 60, 1, 232, 124, 0, 58, 54, 551
620 DATA 61, 1, 116, 97, 180, 2, 205, 16, 678
630 DATA 180, 0, 156, 46, 255, 30, 51, 1, 719
640 DATA 60, 27, 116, 81, 60, 8, 117, 11, 480
650 DATA 10, 210, 116, 226, 254, 202, 232, 226, 1476
660 DATA 0, 235, 219, 60, 13, 117, 12, 232, 888
670 DATA 117, 0, 176, 13, 170, 254, 6, 58, 794
680 DATA 1, 235, 203, 60, 32, 114, 24, 128, 797
690 DATA 62, 62, 1, 0, 116, 5, 232, 178, 656
700 DATA 0, 235, 7, 185, 1, 0, 180, 10, 618
710 DATA 205, 16, 232, 68, 0, 235, 175, 134, 1065
720 DATA 196, 45, 71, 0, 114, 178, 61, 12, 677
730 DATA 0, 119, 173, 3, 192, 139, 248, 255, 1129
740 DATA 149, 63, 1, 235, 153, 139, 22, 60, 822
750 DATA 1, 180, 2, 205, 16, 7, 31, 95, 537
760 DATA 90, 89, 91, 88, 195, 138, 22, 60, 773
770 DATA 1, 195, 10, 246, 116, 2, 254, 206, 1030
780 DATA 195, 42, 210, 195, 10, 210, 117, 6, 985
790 DATA 138, 22, 59, 1, 235, 236, 254, 202, 1147
800 DATA 195, 58, 22, 59, 1, 114, 5, 42, 496
810 DATA 210, 235, 12, 144, 254, 194, 195, 232, 1476
820 DATA 35, 0, 139, 22, 60, 1, 195, 254, 706
830 DATA 198, 195, 138, 14, 59, 1, 254, 193, 1052
840 DATA 42, 202, 42, 237, 176, 32, 180, 10, 921
850 DATA 205, 16, 195, 128, 54, 62, 1, 255, 916
860 DATA 195, 232, 63, 0, 195, 43, 201, 191, 1120
870 DATA 128, 0, 137, 62, 56, 1, 252, 180, 816
880 DATA 2, 205, 16, 180, 8, 205, 16, 170, 802
890 DATA 65, 254, 194, 58, 22, 59, 1, 118, 771
900 DATA 238, 79, 176, 32, 253, 243, 174, 252, 1447
910 DATA 116, 3, 254, 193, 71, 71, 136, 14, 858
920 DATA 58, 1, 195, 82, 139, 248, 232, 31, 986
930 DATA 0, 254, 194, 58, 22, 59, 1, 118, 706
940 DATA 245, 90, 195, 191, 32, 0, 138, 218, 1109
950 DATA 138, 22, 59, 1, 232, 9, 0, 254, 715
960 DATA 202, 58, 211, 125, 247, 254, 194, 195, 1486
970 DATA 180, 2, 205, 16, 180, 8, 205, 16, 812
980 DATA 151, 185, 1, 0, 180, 10, 205, 16, 748
990 DATA 195, 43, 192, 142, 216, 196, 30, 132, 1146
1000 DATA 0, 46, 137, 30, 47, 1, 46, 140, 447
1010 DATA 6, 49, 1, 196, 30, 88, 0, 46, 416
1020 DATA 137, 30, 51, 1, 46, 140, 6, 53, 464
1030 DATA 1, 14, 31, 186, 89, 1, 184, 33, 539
1040 DATA 37, 205, 33, 186, 130, 1, 184, 22, 798
1050 DATA 37, 205, 33, 186, 49, 3, 205, 39, 757