As it happens I will be looking into the same idea one of these days. One of the projects way down on my todo list is using a postage-stamp sized RS-232 <> uSDcard module for storage. They use the MS-DOS FAT file system for the PC side and a proprietary set of commands for reading, writing, etc., so TS-DOS compatibility is not an issue; all I'll need are compatible LOAD, SAVE, DIRECTORY etc. programs for the M100, like you.
I can see two ways of having a program load and save another program: One would be to poke it directly into memory; I can't find an example at the moment but I'm sure there are examples out there. Basically (!) you find the relevant pointers, poke your .BA program into RAM and update the directory and pointers. Another, simpler, way might be to have the loader program put the LOAD and SAVE commands into the keyboard buffer, followed by reloading the loader for the next program; don't see why that wouldn't work. m ----- Original Message ----- From: "Ron Lauzon" <[email protected]> To: "Model 100 Discussion" <[email protected]> Sent: Friday, April 07, 2017 1:34 PM Subject: Re: [M100] Writing to a .ba file > Yup. That's pretty much all I want to do. > > It's a little more than just read from COM write to .BA file since I > have a protocol around it for handshaking, etc., but in essence, it's > just reading from COM and writing to a .BA file. > > > > On Fri, Apr 7, 2017 at 1:14 PM, Mike Stein <[email protected]> wrote: >> So all you want to do is read a .BA file from the com port and save it in >> the M100 RAM? >> >> m >> >> ----- Original Message ----- >> From: "Ron Lauzon" <[email protected]> >> To: "Model 100 Discussion" <[email protected]> >> Sent: Friday, April 07, 2017 12:43 PM >> Subject: Re: [M100] Writing to a .ba file >> >> >>> Ya, that's what I'm (trying) to do. It's been 30 years since I've had >>> to deal with assembler, so I'm not willing to do that. >>> >>> But, otherwise, it works. The new project is on: >>> https://github.com/rlauzon/rdos >>> >>> It implements a sort-of-TPDD protocol and the client programs are >>> written in BASIC. >>> But it does work and works quite well so far. >>> >>> I removed the features of the TPDD protocol that I didn't need (like >>> format drive and drive status) and changed others ("previous file" is >>> "change directory" in my project). >>> I allow you to use all 24 characters of the file name field (for >>> naming the file on the disk - you still have to deal with the file >>> name limitation on the M100). >>> It will "boot" the loader program by doing a LOAD "COM:98N1D and >>> pressing a button. >>> Once the loader program is there, you can load the save, list and >>> utility programs. >>> I implemented directory handling, so you can use a nice, big SD card >>> and subdirectories. >>> >>> I've booted up from a hard reset on my T102, loaded up all the >>> programs, and played for a bit. I still need to really kick it >>> around, so it's in alpha test right now. >>> >>> About $85 in hardware (I had the 32 GB SD card, drive activity LED, >>> boot button and 9-25 serial cable laying around). >>> I only needed to solder the headers to the SD Card shield. Everything >>> else was just plug/play. >>> >>> >>> On Fri, Apr 7, 2017 at 12:17 PM, John R. Hogerhuis <[email protected]> wrote: >>>> >>>> On Fri, Apr 7, 2017 at 8:37 AM Mike Stein <[email protected]> wrote: >>>>> >>>>> RAM is always going to be an issue; even if you could write a .BA file >>>>> then the new program and the program writing it would have to be in memory >>>>> simultaneously (although of course a .DO file would be larger). >>>>> >>>>> It would help if we knew how you plan to create the .BA file that you want >>>>> to write; creating a non-trivial .BA file can be pretty tricky. >>>>> >>>>> m >>>> >>>> >>>> >>>> I think he's receiving it from an Arduino tpdd server. >>>> >>>> Ron, you'll at least need to write some ML subroutines to create a >>>> tokenized >>>> basic file from received tokenized basic data. >>>> >>>> -- John. >>> >>> >>> >>> -- >>> Ron Lauzon - rlauzon at acm dot org >>> Homepage: http://webpages.charter.net/rlauzon/ >>> Weblog: http://ronsapartment.blogspot.com/ >>> >>> DNRC: Lord of All Things That Are Fattening >>> >>> "To be sure, conservative radio talk show hosts have a built-in >>> audience unavailable to liberals: People driving cars to some >>> sort of job." - Ann Coulter >>> >>> Microsoft Free since July 06, 2001 >>> Running Ubuntu 16.04 > > > > -- > Ron Lauzon - rlauzon at acm dot org > Homepage: http://webpages.charter.net/rlauzon/ > Weblog: http://ronsapartment.blogspot.com/ > > DNRC: Lord of All Things That Are Fattening > > "To be sure, conservative radio talk show hosts have a built-in > audience unavailable to liberals: People driving cars to some > sort of job." - Ann Coulter > > Microsoft Free since July 06, 2001 > Running Ubuntu 16.04 >
