--- title: "MSDOS to LKDOS Converter" id: 77466 type: "computer_media" slug: "msdos-to-lkdos-converter" url: "http://localhost/computer_media/msdos-to-lkdos-converter/" markdown_url: "http://localhost/computer_media/msdos-to-lkdos-converter.md" published_at: "2026-11-15T18:38:24+00:00" modified_at: "2026-11-15T18:38:24+00:00" author: "David Anderson" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "Transfers text files from MS-DOS disks to Mscript files on a Larken LKDOS disk." post_tag: - name: "LKDOS" slug: "lkdos" taxonomy: "post_tag" url: "http://localhost/tag/lkdos/" - name: "TS 2068" slug: "ts2068" taxonomy: "post_tag" url: "http://localhost/tag/ts2068/" model: - name: "Timex/Sinclair 2068" slug: "ts-2068" taxonomy: "model" url: "http://localhost/model/ts-2068/" indiv: - name: "George Chambers" slug: "george-chambers" taxonomy: "indiv" url: "http://localhost/indiv/george-chambers/" genre: - name: "Utility" slug: "utility" taxonomy: "genre" url: "http://localhost/type/utility/" media_type: "Program" programmers: - name: "George Chambers" slug: "george-chambers" taxonomy: "indiv" url: "http://localhost/indiv/george-chambers/" mediadate: "1990" article_media: - id: 23246 title: "Transferring MSDOS files to the TS2068" type: "article" url: "http://localhost/article/transferring-msdos-files-to-the-ts2068/" media_type_tags: "Utility" license: false --- # MSDOS to LKDOS Converter Copies text from MS-DOS disks (single- or double-sided) onto a Larken disk as Mscript files. It reads three MS-DOS tracks at a time (4608 bytes each) into one 13824-byte block, can replace values such as nulls and carriage returns with a fast machine-code search and replace, and saves each block under a name ending A, B, C … It can also show any MS-DOS track on screen, with * for non-text bytes. For LKDOS version 3 with a second drive for the MS-DOS disk; it uses LKDOS track loads and drive selects, so it needs the Larken disk system and there is no download. Placed in the public domain by the author. Published in Sinc-Link May-June 1990 ([Transferring MSDOS files to the TS2068](https://timexsinclair.com/article/transferring-msdos-files-to-the-ts2068/)). ## Source Code ``` 100 REM A utility to move MSDOS text files to the Larken LKDOS(TS2068) 110 REM Written and placed in the public domain by 120 REM G. Chambers [address omitted] 130 REM For version 3 LKDOS 140 REM For use with Larken and MSDOS SS and DS disks 150 RANDOMIZE USR 100: OPEN #4,"dd" 160 LET oo=0: LET oa=1: LET ob=2: LET oc=3: LET od=4: LET oe=5: LET of=6: LET og=7: LET oh=8 170 BORDER oa: PAPER oa: CLS 180 ON ERR RESET : CLS : GO SUB 1000 210 PRINT AT 12,3;"Wait a moment...." 220 RESTORE 250 230 FOR n=44000 TO 44160: READ a: POKE n,a: NEXT n 240 PRINT AT 12,3;" " 250 DATA 195,249,171,195,7,172,195,27,172,195 260 DATA 56,172,195,75,172,243,205,98,0,201 270 DATA 58,100,0,251,201,205,239,171,58,124 280 DATA 171,50,29,32,205,126,0,24,237,205 290 DATA 239,171,58,124,171,50,29,32,205,129 300 DATA 0,58,29,32,50,124,171,24,217,205 310 DATA 239,171,175,50,32,32,205,123,0,58 320 DATA 32,32,79,6,0,33,112,32,17,200 330 DATA 175,1,0,20,237,176,24,188,205,239 340 DATA 171,33,200,175,17,112,32,1,0,20 350 DATA 237,176,205,120,0,24,169,205,239,171 360 DATA 42,144,171,78,35,70,24,158,0,0 370 DATA 33,200,175,17,0,200,1,0,18,237,176,201,0,0,0 380 DATA 22,0,30,0,33,254,199,35,126,1,0,254 390 DATA 167,237,66,9,208,186,32,243,115,24,240,0,0,0,0 410 LET settrack=VAL "44000" 420 LET nexttrack=VAL "44003" 430 LET load=VAL "44006" 440 LET save=VAL "44009" 450 LET track=VAL "43900" 460 LET drive=VAL "43301" 470 REM LET buffer=VAL "50000": LET bufflenth=VAL "5120": LET lastcell=VAL "3571": LET diskname=4483 480 POKE drive,ob 490 LET treg=VAL "18" 500 INPUT "Orig. Drive (MSDOS) ";orig 505 INPUT "1)Side or 2)Sides to Disk";q: 507 ON ERR RESET : POKE 23658,8: INPUT "Inspect MSDOS disk? ";y$: IF y$<>"Y" AND y$<>"N" THEN GO TO 507 508 IF y$="Y" THEN GO SUB 860 510 INPUT "Dest. Drive (Larken) ";dest 520 INPUT "Name for Mscript File(max 5) ";a$: IF LEN a$>5 THEN LET a$=a$( TO 5) 530 LET a=64: LET m$="" 550 LET count=oa: INPUT "Start transfer at track No.? ";count 560 INPUT "Ending at which track #? ";end 570 INPUT "Modify File? ";y$: IF y$="N" OR y$="n" THEN GO TO 590 580 GO SUB 910 590 PRINT AT VAL "21",og;"(Press M to stop program)": PRINT AT oc,oo 595 LET step=3: IF q=1 THEN LET step=6 600 FOR t=count TO end STEP step 610 RANDOMIZE USR 100: GO TO orig 620 POKE track,t: RANDOMIZE USR settrack 630 LET move=200 640 CLS : PRINT AT 3,1;"MSDOS to Larken File Converter" 650 FOR w=1 TO 3 660 IF INKEY$<>"" THEN LET m$=INKEY$ 670 RANDOMIZE USR load 680 RANDOMIZE USR nexttrack 685 IF q=1 THEN PAUSE 6: RANDOMIZE USR nexttrack 690 POKE 44125,move: LET move=move+18: REM Relocating data 700 RANDOMIZE USR 44120 710 NEXT w 720 RANDOMIZE USR 100: GO TO dest 730 FOR n=1 TO change 740 POKE 44136,d(n): POKE 44138,e(n) 750 RANDOMIZE USR 44135: REM Modify selected numbers in the textfile: i.e. nulls and/or CR's 760 NEXT n 770 IF m$="m" THEN STOP 780 LET a=a+1: LET b$=CHR$ a: LET c$=a$+b$+".CM" 790 PRINT AT 19,3;"Saving... ";c$ 800 RANDOMIZE USR 100: SAVE c$CODE 51200,13824 810 NEXT t 820 PRINT AT 21,oo;" Last track-Press key to stop": PAUSE oo 830 STOP 860 INPUT "Inspect which track? ";count 865 PRINT #4: GO TO orig 870 POKE track, count: PAUSE 6: PRINT USR settrack: PAUSE 6: PRINT USR load 880 ON ERR GO TO 507: FOR N=45000 TO 49608: IF PEEK n>31 AND PEEK n<126 THEN PRINT CHR$ PEEK n;: GO TO 890 882 PRINT "*"; 890 NEXT n 900 RETURN 910 INPUT "Number of changes to be made ";change 920 DIM d(change): DIM e(change) 930 FOR n=1 TO change 940 INPUT "Remove which No.? ";d(n) 950 INPUT "Replace with No.? ";e(n) 960 NEXT n 970 RETURN 1000 PRINT AT ob,oc; INK ob; PAPER og;" LARKEN DISK UTILITY v1.3 ";AT od,oc; INK og; PAPER ob;"MSDOS to LKDOS Converter ";AT of,od;" 1990 George Chambers " 1010 INK og: PLOT oo,VAL "108": DRAW oo,VAL "62": DRAW VAL "255",oo: DRAW oo,VAL "-62": DRAW VAL "-255",oo 1020 INK og: PLOT oh,VAL "114": DRAW oo,VAL "50": DRAW VAL "238",oo: DRAW oo,VAL "-50": DRAW VAL "-238",oo 1030 RETURN 8000 INK 0: PAPER 7: BORDER 7: CLS : LIST : STOP 8999 STOP 9000 CLEAR : LET od=4: POKE 23658,0: PRINT AT 13,9;"SAVE ROUTINE"''" Press ""D"" key to save to disk,"'' " or ""T"" key to save to tape": PAUSE 0: IF INKEY$="d" THEN INPUT "Drive #? ";dr: PRINT #od: GO TO dr 9010 IF INKEY$="t" THEN LET od=2 9020 PRINT #od: SAVE "MSDOS.Bx" LINE 150: RUN ```