1C 01 07 01 07
This will create a zero-sided text window right next to the initial BASIC prompt. I use this on most of my !BOOT files, and I think it would look nice used on the EUG disks.
*SAVE filename <start> <end>
*DUMP filename 0 <turn printer on> <CR>
The BASIC LISTO command does not work, since a program is not SAVEd with these indentations. However, I recently worked out a method that will indent BASIC programs after they've been written in the same way that the LISTO command does. Simply LOAD in the program with no indentations and then type in the following: (The LISTO setting I've chosen is 6, giving all loop indentations, but does not insert the wasteful space at the start of the line.)
>LISTO 6
>*SPOOL listing
>LIST
>*SPOOL
>*EXEC listing
>SAVE "filename"
The LIST command will take a fair while to execute before control comes back to you. Wait until the prompt returns before typing the next command. After the second *SPOOL command, an ASCII text file will have been created which is your detokenised indented BASIC listing. The *EXEC command will not enter this program at the keyboard (and the computer will treat it like you are entering it), which is then saved under whatever filename you've specified. I have used this method successfully in the MASTERMIND game which is part of this issue's GAME SHOW.
However, all users of this method should bear in mind that it slows down a program in the same respect as REMs (and wastes memory too!). I have never found this a problem though!
Ross Little, EUG #20