Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_20.ADF » F/TIPS1
F/TIPS1
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_20.ADF |
Filename: | F/TIPS1 |
Read OK: | ✔ |
File size: | 0B37 bytes |
Load address: | 3A204556 |
Exec address: | 2E462E31 |
File contents
The Old Police House Main Road Filby Great Yarmouth NR29 3HY Dear 'Gus, I believe you mentioned in EUG19 about people writing in with the various tips which they use. I have got a few listed below. a. To find the last line number of the program in memory, instead of listing the proram, just hold down Ctrl and Shift, whilst pressing Escape twice. b. To get an invisable !BOOT file, create the file as normal, but have a string of five X's on the first line. Then, use a sector editor to change the X's to the following hexadecimal values: 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 were it used on the EUG disks. c. To get a memory dump of machine code which is stored at &900, using the ADT Rom (which, as you told me, corrupts this Page if you use *MEX addr 0), set your printer up and type the following: *SAVE filename <start> <end> *DUMP filename 0 <turn printer on> <CR> d. A quick MODE change to Mode 6 can be achieved by: <Ctrl> V <Ctrl> F Likewise, a CLS can be quickened by: <Ctrl> L e. Sometimes it is necessary to have a program with all loops etc. indented, for, say, presentation purposes. However, unless you are prepared to either enter (or re-enter) a program with indented lines, or use the BASIC Editor's Copy functions to indent these, it is impossible to do. The BASIC LISTO command does not work, since a program is not SAVEd with these indentations. However, I recently worked out a method to indent BASIC programs after they have been written, in the same way that the LISTO command does. Simply type or LOAD in the program, with no indentations, and then type in the following: (The LISTO setting I have chosen is '6'. This gives 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 carry out. Wait until the BASIC 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 now enter this program at the keyboard (and the computer will treat it like you are entering it), which is then saved under whichever filename is required. I have used this method successfully with the Mastermind game I have submitted. All users of this method should bear in mind that it can slow down a program in the same way as REMs, and waste memory, but I have never found either of these to be a problem. Yours sincerely, Ross Little
00000000 09 09 09 09 09 09 54 68 65 20 4f 6c 64 20 50 6f |......The Old Po| 00000010 6c 69 63 65 20 48 6f 75 73 65 0d 09 09 09 09 09 |lice House......| 00000020 09 4d 61 69 6e 20 52 6f 61 64 0d 09 09 09 09 09 |.Main Road......| 00000030 09 46 69 6c 62 79 0d 09 09 09 09 09 09 47 72 65 |.Filby.......Gre| 00000040 61 74 20 59 61 72 6d 6f 75 74 68 0d 09 09 09 09 |at Yarmouth.....| 00000050 09 09 4e 52 32 39 20 33 48 59 20 0d 0d 44 65 61 |..NR29 3HY ..Dea| 00000060 72 20 27 47 75 73 2c 0d 0d 49 20 62 65 6c 69 65 |r 'Gus,..I belie| 00000070 76 65 20 79 6f 75 20 6d 65 6e 74 69 6f 6e 65 64 |ve you mentioned| 00000080 20 69 6e 1a 20 45 55 47 31 39 20 61 62 6f 75 74 | in. EUG19 about| 00000090 20 70 65 6f 70 6c 65 20 77 72 69 74 69 6e 67 20 | people writing | 000000a0 69 6e 20 77 69 74 68 20 74 68 65 20 76 61 72 69 |in with the vari| 000000b0 6f 75 73 0d 74 69 70 73 20 77 68 69 63 68 20 74 |ous.tips which t| 000000c0 68 65 79 20 75 73 65 2e 20 20 49 20 68 61 76 65 |hey use. I have| 000000d0 20 67 6f 74 20 61 20 66 65 77 20 6c 69 73 74 65 | got a few liste| 000000e0 64 20 62 65 6c 6f 77 2e 0d 0d 20 20 20 20 20 61 |d below... a| 000000f0 2e 20 20 54 6f 20 66 69 6e 64 20 74 68 65 20 6c |. To find the l| 00000100 61 73 74 20 6c 69 6e 65 20 6e 75 6d 62 65 72 20 |ast line number | 00000110 6f 66 20 74 68 65 20 70 72 6f 67 72 61 6d 20 69 |of the program i| 00000120 6e 20 6d 65 6d 6f 72 79 2c 20 69 6e 73 74 65 61 |n memory, instea| 00000130 64 20 6f 66 0d 6c 69 73 74 69 6e 67 20 74 68 65 |d of.listing the| 00000140 20 70 72 6f 72 61 6d 2c 20 6a 75 73 74 20 68 6f | proram, just ho| 00000150 6c 64 1a 20 64 6f 77 6e 20 43 74 72 6c 20 61 6e |ld. down Ctrl an| 00000160 64 20 53 68 69 66 74 2c 20 77 68 69 6c 73 74 20 |d Shift, whilst | 00000170 70 72 65 73 73 69 6e 67 20 45 73 63 61 70 65 0d |pressing Escape.| 00000180 74 77 69 63 65 2e 0d 20 20 20 20 20 62 2e 20 20 |twice.. b. | 00000190 54 6f 20 67 65 74 20 61 6e 20 69 6e 76 69 73 61 |To get an invisa| 000001a0 62 6c 65 1a 20 21 42 4f 4f 54 1a 20 66 69 6c 65 |ble. !BOOT. file| 000001b0 2c 1a 20 63 72 65 61 74 65 20 74 68 65 20 66 69 |,. create the fi| 000001c0 6c 65 20 61 73 20 6e 6f 72 6d 61 6c 2c 20 62 75 |le as normal, bu| 000001d0 74 0d 68 61 76 65 20 61 20 73 74 72 69 6e 67 20 |t.have a string | 000001e0 6f 66 20 66 69 76 65 20 58 27 73 20 6f 6e 20 74 |of five X's on t| 000001f0 68 65 20 66 69 72 73 74 20 6c 69 6e 65 2e 20 20 |he first line. | 00000200 54 68 65 6e 2c 20 75 73 65 20 61 20 73 65 63 74 |Then, use a sect| 00000210 6f 72 20 65 64 69 74 6f 72 20 74 6f 0d 63 68 61 |or editor to.cha| 00000220 6e 67 65 20 74 68 65 20 58 27 73 20 74 6f 20 74 |nge the X's to t| 00000230 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 68 65 78 |he following hex| 00000240 61 64 65 63 69 6d 61 6c 20 76 61 6c 75 65 73 3a |adecimal values:| 00000250 20 20 20 20 20 0d 0d 20 20 20 20 20 31 43 20 30 | .. 1C 0| 00000260 31 20 30 37 20 30 31 20 30 37 20 0d 0d 54 68 69 |1 07 01 07 ..Thi| 00000270 73 20 77 69 6c 6c 20 63 72 65 61 74 65 20 61 20 |s will create a | 00000280 7a 65 72 6f 2d 73 69 64 65 64 1a 20 74 65 78 74 |zero-sided. text| 00000290 20 77 69 6e 64 6f 77 20 72 69 67 68 74 20 6e 65 | window right ne| 000002a0 78 74 20 74 6f 20 74 68 65 20 69 6e 69 74 69 61 |xt to the initia| 000002b0 6c 20 42 41 53 49 43 0d 70 72 6f 6d 70 74 2e 20 |l BASIC.prompt. | 000002c0 20 49 1a 20 75 73 65 1a 20 74 68 69 73 20 6f 6e | I. use. this on| 000002d0 20 6d 6f 73 74 20 6f 66 20 6d 79 20 21 42 4f 4f | most of my !BOO| 000002e0 54 20 66 69 6c 65 73 2c 20 61 6e 64 20 49 20 74 |T files, and I t| 000002f0 68 69 6e 6b 20 69 74 20 77 6f 75 6c 64 20 6c 6f |hink it would lo| 00000300 6f 6b 0d 6e 69 63 65 20 77 65 72 65 20 69 74 20 |ok.nice were it | 00000310 75 73 65 64 20 6f 6e 20 74 68 65 20 45 55 47 20 |used on the EUG | 00000320 64 69 73 6b 73 2e 0d 20 20 20 20 20 63 2e 20 20 |disks.. c. | 00000330 54 6f 20 67 65 74 20 61 20 6d 65 6d 6f 72 79 1a |To get a memory.| 00000340 20 64 75 6d 70 1a 20 6f 66 1a 20 6d 61 63 68 69 | dump. of. machi| 00000350 6e 65 1a 20 63 6f 64 65 20 77 68 69 63 68 20 69 |ne. code which i| 00000360 73 20 73 74 6f 72 65 64 20 61 74 20 26 39 30 30 |s stored at &900| 00000370 2c 0d 75 73 69 6e 67 20 74 68 65 20 41 44 54 20 |,.using the ADT | 00000380 52 6f 6d 20 28 77 68 69 63 68 2c 20 61 73 20 79 |Rom (which, as y| 00000390 6f 75 20 74 6f 6c 64 20 6d 65 2c 1a 20 63 6f 72 |ou told me,. cor| 000003a0 72 75 70 74 73 1a 20 74 68 69 73 1a 20 50 61 67 |rupts. this. Pag| 000003b0 65 20 69 66 20 79 6f 75 20 75 73 65 0d 2a 4d 45 |e if you use.*ME| 000003c0 58 20 61 64 64 72 20 30 29 2c 20 73 65 74 20 79 |X addr 0), set y| 000003d0 6f 75 72 20 70 72 69 6e 74 65 72 20 75 70 20 61 |our printer up a| 000003e0 6e 64 20 74 79 70 65 20 74 68 65 20 66 6f 6c 6c |nd type the foll| 000003f0 6f 77 69 6e 67 3a 0d 0d 20 20 20 20 20 2a 53 41 |owing:.. *SA| 00000400 56 45 20 66 69 6c 65 6e 61 6d 65 20 3c 73 74 61 |VE filename <sta| 00000410 72 74 3e 20 3c 65 6e 64 3e 0d 20 20 20 20 20 2a |rt> <end>. *| 00000420 44 55 4d 50 20 66 69 6c 65 6e 61 6d 65 20 30 20 |DUMP filename 0 | 00000430 3c 74 75 72 6e 20 70 72 69 6e 74 65 72 20 6f 6e |<turn printer on| 00000440 3e 20 3c 43 52 3e 0d 0d 20 20 20 20 20 64 2e 20 |> <CR>.. d. | 00000450 20 41 20 71 75 69 63 6b 20 4d 4f 44 45 20 63 68 | A quick MODE ch| 00000460 61 6e 67 65 20 74 6f 20 4d 6f 64 65 20 36 20 63 |ange to Mode 6 c| 00000470 61 6e 20 62 65 20 61 63 68 69 65 76 65 64 20 62 |an be achieved b| 00000480 79 3a 0d 0d 20 20 20 20 20 3c 43 74 72 6c 3e 20 |y:.. <Ctrl> | 00000490 56 0d 20 20 20 20 20 3c 43 74 72 6c 3e 20 46 0d |V. <Ctrl> F.| 000004a0 0d 4c 69 6b 65 77 69 73 65 2c 20 61 20 43 4c 53 |.Likewise, a CLS| 000004b0 20 63 61 6e 20 62 65 20 71 75 69 63 6b 65 6e 65 | can be quickene| 000004c0 64 20 62 79 3a 0d 0d 20 20 20 20 20 3c 43 74 72 |d by:.. <Ctr| 000004d0 6c 3e 20 4c 0d 0d 20 20 20 20 20 65 2e 20 20 53 |l> L.. e. S| 000004e0 6f 6d 65 74 69 6d 65 73 20 69 74 20 69 73 20 6e |ometimes it is n| 000004f0 65 63 65 73 73 61 72 79 1a 20 74 6f 1a 20 68 61 |ecessary. to. ha| 00000500 76 65 20 61 20 70 72 6f 67 72 61 6d 20 77 69 74 |ve a program wit| 00000510 68 20 61 6c 6c 20 6c 6f 6f 70 73 20 65 74 63 2e |h all loops etc.| 00000520 0d 69 6e 64 65 6e 74 65 64 2c 1a 20 66 6f 72 2c |.indented,. for,| 00000530 1a 20 73 61 79 2c 1a 20 70 72 65 73 65 6e 74 61 |. say,. presenta| 00000540 74 69 6f 6e 1a 20 70 75 72 70 6f 73 65 73 2e 1a |tion. purposes..| 00000550 20 20 48 6f 77 65 76 65 72 2c 20 75 6e 6c 65 73 | However, unles| 00000560 73 1a 20 79 6f 75 1a 20 61 72 65 0d 70 72 65 70 |s. you. are.prep| 00000570 61 72 65 64 20 74 6f 20 65 69 74 68 65 72 20 65 |ared to either e| 00000580 6e 74 65 72 20 28 6f 72 20 72 65 2d 65 6e 74 65 |nter (or re-ente| 00000590 72 29 1a 20 61 1a 20 70 72 6f 67 72 61 6d 20 77 |r). a. program w| 000005a0 69 74 68 20 69 6e 64 65 6e 74 65 64 20 6c 69 6e |ith indented lin| 000005b0 65 73 2c 20 6f 72 0d 75 73 65 20 74 68 65 20 42 |es, or.use the B| 000005c0 41 53 49 43 20 45 64 69 74 6f 72 27 73 20 43 6f |ASIC Editor's Co| 000005d0 70 79 20 66 75 6e 63 74 69 6f 6e 73 20 74 6f 20 |py functions to | 000005e0 69 6e 64 65 6e 74 20 74 68 65 73 65 2c 20 69 74 |indent these, it| 000005f0 20 69 73 20 69 6d 70 6f 73 73 69 62 6c 65 20 74 | is impossible t| 00000600 6f 0d 64 6f 2e 20 20 54 68 65 20 42 41 53 49 43 |o.do. The BASIC| 00000610 20 4c 49 53 54 4f 20 63 6f 6d 6d 61 6e 64 20 64 | LISTO command d| 00000620 6f 65 73 20 6e 6f 74 20 77 6f 72 6b 2c 1a 20 73 |oes not work,. s| 00000630 69 6e 63 65 1a 20 61 20 70 72 6f 67 72 61 6d 20 |ince. a program | 00000640 69 73 20 6e 6f 74 20 53 41 56 45 64 0d 77 69 74 |is not SAVEd.wit| 00000650 68 1a 20 74 68 65 73 65 1a 20 69 6e 64 65 6e 74 |h. these. indent| 00000660 61 74 69 6f 6e 73 2e 1a 20 20 48 6f 77 65 76 65 |ations.. Howeve| 00000670 72 2c 1a 20 49 1a 20 72 65 63 65 6e 74 6c 79 1a |r,. I. recently.| 00000680 20 77 6f 72 6b 65 64 20 6f 75 74 20 61 20 6d 65 | worked out a me| 00000690 74 68 6f 64 20 74 6f 0d 69 6e 64 65 6e 74 20 42 |thod to.indent B| 000006a0 41 53 49 43 20 70 72 6f 67 72 61 6d 73 20 61 66 |ASIC programs af| 000006b0 74 65 72 20 74 68 65 79 20 68 61 76 65 20 62 65 |ter they have be| 000006c0 65 6e 1a 20 77 72 69 74 74 65 6e 2c 1a 20 69 6e |en. written,. in| 000006d0 20 74 68 65 20 73 61 6d 65 20 77 61 79 20 74 68 | the same way th| 000006e0 61 74 0d 74 68 65 1a 20 4c 49 53 54 4f 1a 20 63 |at.the. LISTO. c| 000006f0 6f 6d 6d 61 6e 64 20 64 6f 65 73 2e 20 20 53 69 |ommand does. Si| 00000700 6d 70 6c 79 20 74 79 70 65 20 6f 72 20 4c 4f 41 |mply type or LOA| 00000710 44 20 69 6e 1a 20 74 68 65 1a 20 70 72 6f 67 72 |D in. the. progr| 00000720 61 6d 2c 1a 20 77 69 74 68 1a 20 6e 6f 0d 69 6e |am,. with. no.in| 00000730 64 65 6e 74 61 74 69 6f 6e 73 2c 20 61 6e 64 20 |dentations, and | 00000740 74 68 65 6e 1a 20 74 79 70 65 1a 20 69 6e 20 74 |then. type. in t| 00000750 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 3a 20 20 28 |he following: (| 00000760 54 68 65 20 4c 49 53 54 4f 20 73 65 74 74 69 6e |The LISTO settin| 00000770 67 20 49 20 68 61 76 65 0d 63 68 6f 73 65 6e 20 |g I have.chosen | 00000780 69 73 20 27 36 27 2e 20 20 54 68 69 73 20 67 69 |is '6'. This gi| 00000790 76 65 73 1a 20 61 6c 6c 20 6c 6f 6f 70 20 69 6e |ves. all loop in| 000007a0 64 65 6e 74 61 74 69 6f 6e 73 2c 20 62 75 74 20 |dentations, but | 000007b0 64 6f 65 73 20 6e 6f 74 20 69 6e 73 65 72 74 20 |does not insert | 000007c0 74 68 65 0d 77 61 73 74 65 66 75 6c 20 73 70 61 |the.wasteful spa| 000007d0 63 65 20 61 74 20 74 68 65 20 73 74 61 72 74 20 |ce at the start | 000007e0 6f 66 20 74 68 65 20 6c 69 6e 65 2e 29 0d 0d 20 |of the line.).. | 000007f0 20 20 20 20 4c 49 53 54 4f 20 36 0d 20 20 20 20 | LISTO 6. | 00000800 20 2a 53 50 4f 4f 4c 20 6c 69 73 74 69 6e 67 0d | *SPOOL listing.| 00000810 20 20 20 20 20 4c 49 53 54 0d 20 20 20 20 20 2a | LIST. *| 00000820 53 50 4f 4f 4c 0d 20 20 20 20 20 2a 45 58 45 43 |SPOOL. *EXEC| 00000830 20 6c 69 73 74 69 6e 67 0d 20 20 20 20 20 53 41 | listing. SA| 00000840 56 45 20 22 66 69 6c 65 6e 61 6d 65 22 0d 0d 54 |VE "filename"..T| 00000850 68 65 20 4c 49 53 54 20 63 6f 6d 6d 61 6e 64 20 |he LIST command | 00000860 77 69 6c 6c 20 74 61 6b 65 1a 20 61 1a 20 66 61 |will take. a. fa| 00000870 69 72 1a 20 77 68 69 6c 65 1a 20 74 6f 1a 20 63 |ir. while. to. c| 00000880 61 72 72 79 20 6f 75 74 2e 20 20 57 61 69 74 20 |arry out. Wait | 00000890 75 6e 74 69 6c 20 74 68 65 0d 42 41 53 49 43 1a |until the.BASIC.| 000008a0 20 50 72 6f 6d 70 74 1a 20 72 65 74 75 72 6e 73 | Prompt. returns| 000008b0 1a 20 62 65 66 6f 72 65 1a 20 74 79 70 69 6e 67 |. before. typing| 000008c0 20 74 68 65 20 6e 65 78 74 20 63 6f 6d 6d 61 6e | the next comman| 000008d0 64 2e 20 20 41 66 74 65 72 20 74 68 65 20 73 65 |d. After the se| 000008e0 63 6f 6e 64 0d 2a 53 50 4f 4f 4c 20 63 6f 6d 6d |cond.*SPOOL comm| 000008f0 61 6e 64 20 61 6e 20 41 53 43 49 49 20 74 65 78 |and an ASCII tex| 00000900 74 1a 20 66 69 6c 65 1a 20 77 69 6c 6c 1a 20 68 |t. file. will. h| 00000910 61 76 65 1a 20 62 65 65 6e 20 63 72 65 61 74 65 |ave. been create| 00000920 64 20 77 68 69 63 68 20 69 73 20 79 6f 75 72 0d |d which is your.| 00000930 64 65 74 6f 6b 65 6e 69 73 65 64 20 69 6e 64 65 |detokenised inde| 00000940 6e 74 65 64 20 42 41 53 49 43 20 6c 69 73 74 69 |nted BASIC listi| 00000950 6e 67 2e 20 20 54 68 65 20 2a 45 58 45 43 20 63 |ng. The *EXEC c| 00000960 6f 6d 6d 61 6e 64 20 77 69 6c 6c 20 6e 6f 77 20 |ommand will now | 00000970 65 6e 74 65 72 20 74 68 69 73 0d 70 72 6f 67 72 |enter this.progr| 00000980 61 6d 1a 20 61 74 1a 20 74 68 65 20 6b 65 79 62 |am. at. the keyb| 00000990 6f 61 72 64 20 28 61 6e 64 20 74 68 65 20 63 6f |oard (and the co| 000009a0 6d 70 75 74 65 72 20 77 69 6c 6c 20 74 72 65 61 |mputer will trea| 000009b0 74 1a 20 69 74 1a 20 6c 69 6b 65 1a 20 79 6f 75 |t. it. like. you| 000009c0 1a 20 61 72 65 0d 65 6e 74 65 72 69 6e 67 20 69 |. are.entering i| 000009d0 74 29 2c 20 77 68 69 63 68 20 69 73 20 74 68 65 |t), which is the| 000009e0 6e 20 73 61 76 65 64 20 75 6e 64 65 72 20 77 68 |n saved under wh| 000009f0 69 63 68 65 76 65 72 20 66 69 6c 65 6e 61 6d 65 |ichever filename| 00000a00 20 69 73 20 72 65 71 75 69 72 65 64 2e 20 20 49 | is required. I| 00000a10 0d 68 61 76 65 20 75 73 65 64 20 74 68 69 73 1a |.have used this.| 00000a20 20 6d 65 74 68 6f 64 1a 20 73 75 63 63 65 73 73 | method. success| 00000a30 66 75 6c 6c 79 1a 20 77 69 74 68 1a 20 74 68 65 |fully. with. the| 00000a40 1a 20 4d 61 73 74 65 72 6d 69 6e 64 1a 20 67 61 |. Mastermind. ga| 00000a50 6d 65 1a 20 49 1a 20 68 61 76 65 0d 73 75 62 6d |me. I. have.subm| 00000a60 69 74 74 65 64 2e 1a 20 20 41 6c 6c 20 75 73 65 |itted.. All use| 00000a70 72 73 20 6f 66 20 74 68 69 73 20 6d 65 74 68 6f |rs of this metho| 00000a80 64 20 73 68 6f 75 6c 64 20 62 65 61 72 20 69 6e |d should bear in| 00000a90 20 6d 69 6e 64 20 74 68 61 74 20 69 74 20 63 61 | mind that it ca| 00000aa0 6e 20 73 6c 6f 77 0d 64 6f 77 6e 20 61 20 70 72 |n slow.down a pr| 00000ab0 6f 67 72 61 6d 20 69 6e 20 74 68 65 20 73 61 6d |ogram in the sam| 00000ac0 65 20 77 61 79 20 61 73 20 52 45 4d 73 2c 20 61 |e way as REMs, a| 00000ad0 6e 64 20 77 61 73 74 65 20 6d 65 6d 6f 72 79 2c |nd waste memory,| 00000ae0 20 62 75 74 20 49 20 68 61 76 65 20 6e 65 76 65 | but I have neve| 00000af0 72 0d 66 6f 75 6e 64 20 65 69 74 68 65 72 20 6f |r.found either o| 00000b00 66 20 74 68 65 73 65 20 74 6f 20 62 65 20 61 20 |f these to be a | 00000b10 70 72 6f 62 6c 65 6d 2e 0d 0d 59 6f 75 72 73 20 |problem...Yours | 00000b20 73 69 6e 63 65 72 65 6c 79 2c 0d 52 6f 73 73 20 |sincerely,.Ross | 00000b30 4c 69 74 74 6c 65 0d |Little.| 00000b37