nickerso@dalcsug.UUCP (Scott William Nickerson) (01/20/88)
I have received several requests for a dynamic keyboard method for the 128 which will allow for direct entry of programs stored as text files into the computer's memory. Perhaps there are more people on the net that could benefit from this short routine. You will probably be surprised at how easy this is from 128 mode. The whole routine is just a one line BASIC program. The way it works is to redirect standard input(default is the keyboard) to be the disk file. Once the program is read in the routine deletes itself and closes the disk file. I have used this method reliably on many programs. Occasionally you may think that the computer has bombed...the disk stops spinning and the red light remains on... Just hit RUN-STOP-RESTORE and type CLOSE8. You may also have to delete line 0 from the program. Generally however this should never occur. The uses of this program are widespread. I use it to exchange programs between 128 and 64 mode since many of the keywords in 128 mode will not LIST properly in 64 mode. You can make a text file from any BASIC program in memory by following this simple procedure: 1. Type: OPEN8,8,8,"0:listing,s,w":CMD8:LIST 2. Wait until the drive stops spinning and your cursor returns 3. Type: PRINT#8:CLOSE8 A sequential file called 'LISTING' will now be on your disk. This file contains a text listing of your program. The text can be easily mailed or simply loaded using the dynamic keyboard technique for the 64 or this routine(below) for the 128. 0 input"filename";f$:poke208,8:fori=842to849:readx:pokei,x:next:data67,76,207 ,56,13,48,13,147:open8,8,8,"0:"+f$:sys65478,,8:sys65487 Scott Nickerson (nickerso@dalcsug) N.B.- The program must be typed on one line.