--- title: "RHMDOS.C2 Track Load/Save Routines" id: 77499 type: "computer_media" slug: "rhmdos-c2-track-load-save-routines" url: "http://localhost/computer_media/rhmdos-c2-track-load-save-routines/" markdown_url: "http://localhost/computer_media/rhmdos-c2-track-load-save-routines.md" published_at: "2026-11-15T18:38:21+00:00" modified_at: "2026-11-15T18:38:21+00:00" author: "David Anderson" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "Machine code to load and save single disk tracks through the Larken LKDOS cartridge." 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: "Bob Mitchell" slug: "bob-mitchell" taxonomy: "indiv" url: "http://localhost/indiv/bob-mitchell/" - name: "George Chambers" slug: "george-chambers" taxonomy: "indiv" url: "http://localhost/indiv/george-chambers/" genre: - name: "Machine Language" slug: "machine-language" taxonomy: "genre" url: "http://localhost/type/machine-language/" media_type: "Program" programmers: - name: "Bob Mitchell" slug: "bob-mitchell" taxonomy: "indiv" url: "http://localhost/indiv/bob-mitchell/" - name: "George Chambers" slug: "george-chambers" taxonomy: "indiv" url: "http://localhost/indiv/george-chambers/" mediadate: "1988" article_media: - id: 42132 title: "Larken Load/Save Routines" type: "article" url: "http://localhost/article/larken-load-save-routines/" media_type_tags: "Machine Language" license: false --- # RHMDOS.C2 Track Load/Save Routines Bob Mitchell’s machine code for loading a disk track into memory at 63504 and saving it back, by calling the LKDOS cartridge directly, so that utilities no longer need the LDOS64 disk DOS. George Chambers rearranged it and added a third entry point that loads a track without moving the head back to track 0 (for programs such as DOCTOR that read every track in turn). The BASIC POKEs his version to 63000-63110; entry points 63000 (load), 63003 (save) and 63006 (load without head movement), with the track number POKEd into 23728. Save it with SAVE “RHMDOS.C2” CODE 63000,110. For the original Larken system (1960 bytes per track). The code only calls the Larken cartridge, so it needs the Larken disk system; there is no download. The article also prints both disassemblies and Bob’s original version in hex. Published in Sinc-Link January-February 1988 ([Larken Load/Save Routines](https://timexsinclair.com/article/larken-load-save-routines/)). ## Source Code ``` 10 RESTORE 200 20 FOR n=63000 TO 63110: READ a: POKE n,a: NEXT n 30 STOP 200 DATA 195,43,246,195,72,246,195,104,246,243 201 DATA 205,98,0,201,58,100,0,251,201,205 202 DATA 33,246,58,176,92,50,29,32,205,126 203 DATA 0,205,123,0,33,112,32,17,16,248 204 DATA 1,192,7,237,176,195,38,246,205,33 205 DATA 246,58,176,92,50,29,32,33,16,248 206 DATA 17,112,32,1,192,7,237,176,205,150 207 DATA 0,205,126,0,205,120,0,195,38,246 208 DATA 205,33,246,205,129,0,205,123,0,33 209 DATA 112,32,17,16,248,1,192,7,237,176 210 DATA 195,38,246,0,0,0,0,0,0,0,0 1000 STOP Disassembly (G. Chambers 3-entry version) 63000 C32BF6 JP 63019 63003 C348F6 JP 63048 63006 C368F6 JP 63080 63009 F3 DI 63010 CD6200 CALL 98 63013 C9 RET 63014 3A6400 LD A,(100) 63017 FB EI 63018 C9 RET 63019 CD21F6 CALL 63009 63022 3AB05C LD A,(23728) 63025 321D20 LD (8221),A 63028 CD7E00 CALL 126 63031 CD7B00 CALL 123 63034 217020 LD HL,8304 63037 1110F8 LD DE,63504 63040 01C007 LD BC,1984 63043 EDB0 LDIR 63045 C326F6 JP 63014 63048 CD21F6 CALL 63009 63051 3AB05C LD A,(23728) 63054 321D20 LD (8221),A 63057 2110F8 LD HL,63504 63060 117020 LD DE,8304 63063 01C007 LD BC,1984 63066 EDB0 LDIR 63068 CD9600 CALL 150 63071 CD7E00 CALL 126 63074 CD7800 CALL 120 63077 C326F6 JP 63014 63080 CD21F6 CALL 63009 63083 CD8100 CALL 129 63086 CD7B00 CALL 123 63089 217020 LD HL,8304 63092 1110F8 LD DE,63504 63095 01C007 LD BC,1984 63098 EDB0 LDIR 63100 C326F6 JP 63014 63103 C9 RET ```