I just got “something new” for my 2068 programming desk! Jack Dohany has released several excelent LarKen DOS related machine code routines to the public domain.
One of these RELOCATABLE (!) routines, UTIL1.CR, will report whether your current disk is write-protected or not and even when there is no disk in the drive. It reports if a given file exists. It gives the number of the current drive and the number of formatted tracks and the number free. All of this in 255 bytes.
UTIL2.CR checks the entire disk for CRC errors and reports the total. U2 also will check to see if a specific file exists and if it does will make the header data available to BASIC. This one has a length of 200 bytes and it too is relocatable.
FULCAT.CR will give a much more informative catalog with the file name, its start location and its length without all of the disks other statistics such as disk name and other messages.
BREAK.CR prevents program interuption when “N” is pressed at the “Scroll?” prompt. Great for use with those longer catalogs. Plus, this one can be turned off and on. 80 bytes of relocatable code.
So, where does one put one (or all) of these little gems, you may ask. Jack thought of that too. Any where you want (OK, watch out for block 4!) or use GENREM.CR and put it into your BASIC line 1 (or 0) with this REM expanding routine. This one is 100 bytes that you can use and then reuse the space for more programming as you go on.
His PD disk also includes two DEMO programs. These appear, in function, to be identical, however; the way that the machine code is stored is different as reading the LISTing will show. DEMO2.BA uses the GENREM.CR routine to expand the line 0 and stores all 800 bytes of these goodies there.
All of these come with good, on disk as M-script files, documentation which includes source files and notes. (A practice I applaud and recommend to others.)
AND, these work with the Spectrum mode too!
Those interested in receiving a copy of this PD disk should contact Jack Dohany or RMG Enterprises (where I got mine.)