I made a modified version of EhBasic some time ago... only runs on the CMOS version of the processor. I added Load and Save functions, but those routines determine the memory area needed to be saved and then sets some variables in Page Zero, then makes a call to my Monitor code. The load function works the same way, downloads, then sets the pointers in EhBasic to directly run the program. My Monitor code contains a nice Xmodem Load and Save routines working through the console port. Both upload and download use CRC-16 and the download function automagically detects Motorola S19 records, which is how I download code to my SBC.
All of the code is out on my Github page...
|