Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_31.ADF » P/+idea1
P/+idea1
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_31.ADF |
Filename: | P/+idea1 |
Read OK: | ✔ |
File size: | 0883 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
CODE5 bites back ================ Back as far as issue 27 Richard Dimond kindly reproduced the complete source code to the bare workings behind the EUG menu system.This however went unregistered to me. I then looked at later issues and was thinking to my self "why not add to CODE5 support so that Gus doesn't have to write in capitals?".As you do. This was prompted by finding some font definitions in the library directory of the Master welcome disk.These also included ones based on a PC character set (not the usual 8*8 matrix) and ones for bold etc... Then I remebered Richard's listing,and dug it out.Looking closer,infact the software is already there! All that is required to change typefaces is to embed a character &1D for italics or a &1C for bold. It would appear therefore that I have nothing to do,but Gus needs to remember to use Richard's excellent routines. I do however have one suggestion after reading through,why not reserve 24 bytes (say) for vectors.These would start in one FIXED place,eg.&900 and then NEVER move.Then,the menu programs needn't use CALLs to specific locations which don't mean anything. Perhaps an example: FORX=0TO2STEP2 P%=&900 [OPTX JMPprint JMPclear2himem JMPwordwrap JMPpressakey JMP9999 \Reserved JMP9999 \Reserved JMP9999 \Reserved JMP9999 \Reserved .code5 \Unchanged code as before from here \on down ] NEXT Then in the menu programs: 10REM This is a menu program 20print=&900:clear2himem=&903 30wordwrap=&906:pressakey=&909 40: 50: 60Menu program as per usual 70: 80: 90CALLclear2himem 100CALLprint 110CALLpressakey 120: 130: 140END The advantage of the method of keeping the vectors at a FIXED place in memory is that when a new "code5" program is written,the benefits of the new version may be enjoyed on backissues of EUG by simply copying the new "code5" module onto the older disks. At present,doing so would cause menus to crash as (for example) location &9AA isn't the start of the print routine in "code4" ! Food for thought maybe? Robert Sprowson.
00000000 43 4f 44 45 35 20 62 69 74 65 73 20 62 61 63 6b |CODE5 bites back| 00000010 20 0d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d | .==============| 00000020 3d 3d 20 0d 42 61 63 6b 20 61 73 20 66 61 72 20 |== .Back as far | 00000030 61 73 20 69 73 73 75 65 20 32 37 20 52 69 63 68 |as issue 27 Rich| 00000040 61 72 64 20 44 69 6d 6f 6e 64 20 0d 6b 69 6e 64 |ard Dimond .kind| 00000050 6c 79 20 72 65 70 72 6f 64 75 63 65 64 20 74 68 |ly reproduced th| 00000060 65 20 63 6f 6d 70 6c 65 74 65 20 73 6f 75 72 63 |e complete sourc| 00000070 65 20 0d 63 6f 64 65 20 74 6f 20 74 68 65 20 62 |e .code to the b| 00000080 61 72 65 20 77 6f 72 6b 69 6e 67 73 20 62 65 68 |are workings beh| 00000090 69 6e 64 20 74 68 65 20 0d 45 55 47 20 6d 65 6e |ind the .EUG men| 000000a0 75 20 73 79 73 74 65 6d 2e 54 68 69 73 20 68 6f |u system.This ho| 000000b0 77 65 76 65 72 20 77 65 6e 74 20 0d 75 6e 72 65 |wever went .unre| 000000c0 67 69 73 74 65 72 65 64 20 74 6f 20 6d 65 2e 20 |gistered to me. | 000000d0 0d 20 0d 49 20 74 68 65 6e 20 6c 6f 6f 6b 65 64 |. .I then looked| 000000e0 20 61 74 20 6c 61 74 65 72 20 69 73 73 75 65 73 | at later issues| 000000f0 20 61 6e 64 20 77 61 73 20 0d 74 68 69 6e 6b 69 | and was .thinki| 00000100 6e 67 20 74 6f 20 6d 79 20 73 65 6c 66 20 22 77 |ng to my self "w| 00000110 68 79 20 6e 6f 74 20 61 64 64 20 74 6f 20 0d 43 |hy not add to .C| 00000120 4f 44 45 35 20 73 75 70 70 6f 72 74 20 73 6f 20 |ODE5 support so | 00000130 74 68 61 74 20 47 75 73 20 64 6f 65 73 6e 27 74 |that Gus doesn't| 00000140 20 68 61 76 65 20 0d 74 6f 20 77 72 69 74 65 20 | have .to write | 00000150 69 6e 20 63 61 70 69 74 61 6c 73 3f 22 2e 41 73 |in capitals?".As| 00000160 20 79 6f 75 20 64 6f 2e 20 0d 20 0d 54 68 69 73 | you do. . .This| 00000170 20 77 61 73 20 70 72 6f 6d 70 74 65 64 20 62 79 | was prompted by| 00000180 20 66 69 6e 64 69 6e 67 20 73 6f 6d 65 20 66 6f | finding some fo| 00000190 6e 74 20 0d 64 65 66 69 6e 69 74 69 6f 6e 73 20 |nt .definitions | 000001a0 69 6e 20 74 68 65 20 6c 69 62 72 61 72 79 20 64 |in the library d| 000001b0 69 72 65 63 74 6f 72 79 20 0d 6f 66 20 74 68 65 |irectory .of the| 000001c0 20 4d 61 73 74 65 72 20 77 65 6c 63 6f 6d 65 20 | Master welcome | 000001d0 64 69 73 6b 2e 54 68 65 73 65 20 61 6c 73 6f 20 |disk.These also | 000001e0 0d 69 6e 63 6c 75 64 65 64 20 6f 6e 65 73 20 62 |.included ones b| 000001f0 61 73 65 64 20 6f 6e 20 61 20 50 43 20 63 68 61 |ased on a PC cha| 00000200 72 61 63 74 65 72 20 0d 73 65 74 20 28 6e 6f 74 |racter .set (not| 00000210 20 74 68 65 20 75 73 75 61 6c 20 38 2a 38 20 6d | the usual 8*8 m| 00000220 61 74 72 69 78 29 20 61 6e 64 20 0d 6f 6e 65 73 |atrix) and .ones| 00000230 20 66 6f 72 20 62 6f 6c 64 20 65 74 63 2e 2e 2e | for bold etc...| 00000240 20 0d 20 0d 54 68 65 6e 20 49 20 72 65 6d 65 62 | . .Then I remeb| 00000250 65 72 65 64 20 52 69 63 68 61 72 64 27 73 20 6c |ered Richard's l| 00000260 69 73 74 69 6e 67 2c 61 6e 64 20 0d 64 75 67 20 |isting,and .dug | 00000270 69 74 20 6f 75 74 2e 4c 6f 6f 6b 69 6e 67 20 63 |it out.Looking c| 00000280 6c 6f 73 65 72 2c 69 6e 66 61 63 74 20 74 68 65 |loser,infact the| 00000290 20 0d 73 6f 66 74 77 61 72 65 20 69 73 20 61 6c | .software is al| 000002a0 72 65 61 64 79 20 74 68 65 72 65 21 20 41 6c 6c |ready there! All| 000002b0 20 74 68 61 74 20 69 73 20 0d 72 65 71 75 69 72 | that is .requir| 000002c0 65 64 20 74 6f 20 63 68 61 6e 67 65 20 74 79 70 |ed to change typ| 000002d0 65 66 61 63 65 73 20 69 73 20 74 6f 20 0d 65 6d |efaces is to .em| 000002e0 62 65 64 20 61 20 63 68 61 72 61 63 74 65 72 20 |bed a character | 000002f0 26 31 44 20 66 6f 72 20 69 74 61 6c 69 63 73 20 |&1D for italics | 00000300 6f 72 20 61 20 0d 26 31 43 20 66 6f 72 20 62 6f |or a .&1C for bo| 00000310 6c 64 2e 20 0d 20 0d 49 74 20 77 6f 75 6c 64 20 |ld. . .It would | 00000320 61 70 70 65 61 72 20 74 68 65 72 65 66 6f 72 65 |appear therefore| 00000330 20 74 68 61 74 20 49 20 68 61 76 65 20 0d 6e 6f | that I have .no| 00000340 74 68 69 6e 67 20 74 6f 20 64 6f 2c 62 75 74 20 |thing to do,but | 00000350 47 75 73 20 6e 65 65 64 73 20 74 6f 20 0d 72 65 |Gus needs to .re| 00000360 6d 65 6d 62 65 72 20 74 6f 20 75 73 65 20 52 69 |member to use Ri| 00000370 63 68 61 72 64 27 73 20 65 78 63 65 6c 6c 65 6e |chard's excellen| 00000380 74 20 0d 72 6f 75 74 69 6e 65 73 2e 20 20 0d 20 |t .routines. . | 00000390 0d 49 20 64 6f 20 68 6f 77 65 76 65 72 20 68 61 |.I do however ha| 000003a0 76 65 20 6f 6e 65 20 73 75 67 67 65 73 74 69 6f |ve one suggestio| 000003b0 6e 20 61 66 74 65 72 20 0d 72 65 61 64 69 6e 67 |n after .reading| 000003c0 20 74 68 72 6f 75 67 68 2c 77 68 79 20 6e 6f 74 | through,why not| 000003d0 20 72 65 73 65 72 76 65 20 32 34 20 0d 62 79 74 | reserve 24 .byt| 000003e0 65 73 20 28 73 61 79 29 20 66 6f 72 20 76 65 63 |es (say) for vec| 000003f0 74 6f 72 73 2e 54 68 65 73 65 20 77 6f 75 6c 64 |tors.These would| 00000400 20 0d 73 74 61 72 74 20 69 6e 20 6f 6e 65 20 46 | .start in one F| 00000410 49 58 45 44 20 70 6c 61 63 65 2c 65 67 2e 26 39 |IXED place,eg.&9| 00000420 30 30 20 61 6e 64 20 0d 74 68 65 6e 20 4e 45 56 |00 and .then NEV| 00000430 45 52 20 6d 6f 76 65 2e 54 68 65 6e 2c 74 68 65 |ER move.Then,the| 00000440 20 6d 65 6e 75 20 70 72 6f 67 72 61 6d 73 20 0d | menu programs .| 00000450 6e 65 65 64 6e 27 74 20 75 73 65 20 43 41 4c 4c |needn't use CALL| 00000460 73 20 74 6f 20 73 70 65 63 69 66 69 63 20 0d 6c |s to specific .l| 00000470 6f 63 61 74 69 6f 6e 73 20 77 68 69 63 68 20 64 |ocations which d| 00000480 6f 6e 27 74 20 6d 65 61 6e 20 61 6e 79 74 68 69 |on't mean anythi| 00000490 6e 67 2e 20 0d 20 0d 50 65 72 68 61 70 73 20 61 |ng. . .Perhaps a| 000004a0 6e 20 65 78 61 6d 70 6c 65 3a 20 0d 20 0d 46 4f |n example: . .FO| 000004b0 52 58 3d 30 54 4f 32 53 54 45 50 32 20 0d 50 25 |RX=0TO2STEP2 .P%| 000004c0 3d 26 39 30 30 20 0d 5b 4f 50 54 58 20 0d 4a 4d |=&900 .[OPTX .JM| 000004d0 50 70 72 69 6e 74 20 0d 4a 4d 50 63 6c 65 61 72 |Pprint .JMPclear| 000004e0 32 68 69 6d 65 6d 20 0d 4a 4d 50 77 6f 72 64 77 |2himem .JMPwordw| 000004f0 72 61 70 20 0d 4a 4d 50 70 72 65 73 73 61 6b 65 |rap .JMPpressake| 00000500 79 20 0d 4a 4d 50 39 39 39 39 20 20 20 20 20 20 |y .JMP9999 | 00000510 20 20 20 20 5c 52 65 73 65 72 76 65 64 20 0d 4a | \Reserved .J| 00000520 4d 50 39 39 39 39 20 20 20 20 20 20 20 20 20 20 |MP9999 | 00000530 5c 52 65 73 65 72 76 65 64 20 0d 4a 4d 50 39 39 |\Reserved .JMP99| 00000540 39 39 20 20 20 20 20 20 20 20 20 20 5c 52 65 73 |99 \Res| 00000550 65 72 76 65 64 20 0d 4a 4d 50 39 39 39 39 20 20 |erved .JMP9999 | 00000560 20 20 20 20 20 20 20 20 5c 52 65 73 65 72 76 65 | \Reserve| 00000570 64 20 0d 2e 63 6f 64 65 35 20 0d 5c 55 6e 63 68 |d ..code5 .\Unch| 00000580 61 6e 67 65 64 20 63 6f 64 65 20 61 73 20 62 65 |anged code as be| 00000590 66 6f 72 65 20 66 72 6f 6d 20 68 65 72 65 20 20 |fore from here | 000005a0 0d 5c 6f 6e 20 64 6f 77 6e 20 0d 5d 20 0d 4e 45 |.\on down .] .NE| 000005b0 58 54 20 0d 20 0d 54 68 65 6e 20 69 6e 20 74 68 |XT . .Then in th| 000005c0 65 20 6d 65 6e 75 20 70 72 6f 67 72 61 6d 73 3a |e menu programs:| 000005d0 20 0d 20 0d 31 30 52 45 4d 20 54 68 69 73 20 69 | . .10REM This i| 000005e0 73 20 61 20 6d 65 6e 75 20 70 72 6f 67 72 61 6d |s a menu program| 000005f0 20 0d 32 30 70 72 69 6e 74 3d 26 39 30 30 3a 63 | .20print=&900:c| 00000600 6c 65 61 72 32 68 69 6d 65 6d 3d 26 39 30 33 20 |lear2himem=&903 | 00000610 0d 33 30 77 6f 72 64 77 72 61 70 3d 26 39 30 36 |.30wordwrap=&906| 00000620 3a 70 72 65 73 73 61 6b 65 79 3d 26 39 30 39 20 |:pressakey=&909 | 00000630 0d 34 30 3a 20 0d 35 30 3a 20 0d 36 30 4d 65 6e |.40: .50: .60Men| 00000640 75 20 70 72 6f 67 72 61 6d 20 61 73 20 70 65 72 |u program as per| 00000650 20 75 73 75 61 6c 20 0d 37 30 3a 20 0d 38 30 3a | usual .70: .80:| 00000660 20 0d 39 30 43 41 4c 4c 63 6c 65 61 72 32 68 69 | .90CALLclear2hi| 00000670 6d 65 6d 20 0d 31 30 30 43 41 4c 4c 70 72 69 6e |mem .100CALLprin| 00000680 74 20 0d 31 31 30 43 41 4c 4c 70 72 65 73 73 61 |t .110CALLpressa| 00000690 6b 65 79 20 0d 31 32 30 3a 20 0d 31 33 30 3a 20 |key .120: .130: | 000006a0 0d 31 34 30 45 4e 44 20 0d 20 0d 54 68 65 20 61 |.140END . .The a| 000006b0 64 76 61 6e 74 61 67 65 20 6f 66 20 74 68 65 20 |dvantage of the | 000006c0 6d 65 74 68 6f 64 20 6f 66 20 6b 65 65 70 69 6e |method of keepin| 000006d0 67 20 0d 74 68 65 20 76 65 63 74 6f 72 73 20 61 |g .the vectors a| 000006e0 74 20 61 20 46 49 58 45 44 20 70 6c 61 63 65 20 |t a FIXED place | 000006f0 69 6e 20 6d 65 6d 6f 72 79 20 0d 69 73 20 74 68 |in memory .is th| 00000700 61 74 20 77 68 65 6e 20 61 20 6e 65 77 20 22 63 |at when a new "c| 00000710 6f 64 65 35 22 20 70 72 6f 67 72 61 6d 20 69 73 |ode5" program is| 00000720 20 0d 77 72 69 74 74 65 6e 2c 74 68 65 20 62 65 | .written,the be| 00000730 6e 65 66 69 74 73 20 6f 66 20 74 68 65 20 6e 65 |nefits of the ne| 00000740 77 20 0d 76 65 72 73 69 6f 6e 20 6d 61 79 20 62 |w .version may b| 00000750 65 20 65 6e 6a 6f 79 65 64 20 6f 6e 20 62 61 63 |e enjoyed on bac| 00000760 6b 69 73 73 75 65 73 20 0d 6f 66 20 45 55 47 20 |kissues .of EUG | 00000770 62 79 20 73 69 6d 70 6c 79 20 63 6f 70 79 69 6e |by simply copyin| 00000780 67 20 74 68 65 20 6e 65 77 20 0d 22 63 6f 64 65 |g the new ."code| 00000790 35 22 20 6d 6f 64 75 6c 65 20 6f 6e 74 6f 20 74 |5" module onto t| 000007a0 68 65 20 6f 6c 64 65 72 20 64 69 73 6b 73 2e 20 |he older disks. | 000007b0 0d 20 0d 41 74 20 70 72 65 73 65 6e 74 2c 64 6f |. .At present,do| 000007c0 69 6e 67 20 73 6f 20 77 6f 75 6c 64 20 63 61 75 |ing so would cau| 000007d0 73 65 20 6d 65 6e 75 73 20 0d 74 6f 20 63 72 61 |se menus .to cra| 000007e0 73 68 20 61 73 20 28 66 6f 72 20 65 78 61 6d 70 |sh as (for examp| 000007f0 6c 65 29 20 6c 6f 63 61 74 69 6f 6e 20 0d 26 39 |le) location .&9| 00000800 41 41 20 69 73 6e 27 74 20 74 68 65 20 73 74 61 |AA isn't the sta| 00000810 72 74 20 6f 66 20 74 68 65 20 70 72 69 6e 74 20 |rt of the print | 00000820 0d 72 6f 75 74 69 6e 65 20 69 6e 20 22 63 6f 64 |.routine in "cod| 00000830 65 34 22 20 21 20 0d 20 0d 46 6f 6f 64 20 66 6f |e4" ! . .Food fo| 00000840 72 20 74 68 6f 75 67 68 74 20 6d 61 79 62 65 3f |r thought maybe?| 00000850 20 0d 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | . | 00000860 20 20 20 20 20 20 20 52 6f 62 65 72 74 20 53 70 | Robert Sp| 00000870 72 6f 77 73 6f 6e 2e 20 0d 20 0d 20 0d 20 0d 20 |rowson. . . . . | 00000880 0d 20 0d |. .| 00000883