Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_24.ADF » P/Edit1

P/Edit1

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_24.ADF
Filename: P/Edit1
Read OK:
File size: 0959 bytes
Load address: 45204556
Exec address: 31746964
File contents
						6 Bollinbrook road,
						 MACCLESFIELD,
						  Cheshire.
						   SK10 3DJ.

EDIT
====
   A while ago I wrote a MODE 0 screen editor in BASIC as my scanner uses
this mode so editing is essential - sorry it's a little sl ow (I think its
the huge offset calculator starting ?&3000 DIV MOD DIV MOD DIV MOD
etc...).This is on the disk too.

   For those looking at the listing everything is done using GOSUB's
instead of PROC's because there was one which wouldn't return p roperly (a
bug in BASIC??),and also there is less than 256 bytes of free memory if I
remember correctly which makes PROC's impossibl e to do as BASIC copies
the 6502 stack onto the BASIC stack during a PROC - resulting in a no room
error.

   Further details appear in the EDITREM program

   Since then I have given up on the BBC to edit scans - instead I send
them up a serial link to my PC as Windows BMP files and edit them in
'NeoPaint' then send them back when I've finished: believe me  it is
faster in the long run.Incidentally this letter was typ ed on my PC too 

Robert Sprowson.
$.EDIT

Type CHAIN"EDIT".Then at the prompt type the name,including directory,of the file to open.If necessary insert the disk with the file
 on in the disk drive,the when the speaker beeps replace the original program disk.

CURSORS =  move pixel pointer around the screen
SPACE   =  reveal where the cursor currently is
S       =  save the image to the file $.OUTPUT on the program disk
M       =  move the selected area.Drag a box out then press COPY.Drag the 
           moving box then press COPY to paste it
P       =  paste the image currently held on the clipboard ($.EDITCLP)
C       =  copy,same procedure as move
F       =  fill,first choose whether to fill Black/Grey/White,then drag 
           out a box to the area to be filled,then press COPY.The 
           clipboard is unaffected
B       =  box the area by dragging a box as usual,and leave it there on 
           pressing COPY
T       =  type text (DO NOT press delete) at the current cursor 
           position,if return is pressed the text is set in columns
E       =  call editor.Drag out an area,then press COPY.The chosen area is 
           saved and so is the current screen (to $.OUTPUT).The screen 
           mode then changes and the area can be edited using TAB and the 
           cursor keys.Press COPY to overlay the modified version.

00000000  0d 09 09 09 09 09 09 36  20 42 6f 6c 6c 69 6e 62  |.......6 Bollinb|
00000010  72 6f 6f 6b 20 72 6f 61  64 2c 0d 09 09 09 09 09  |rook road,......|
00000020  09 20 4d 41 43 43 4c 45  53 46 49 45 4c 44 2c 0d  |. MACCLESFIELD,.|
00000030  09 09 09 09 09 09 20 20  43 68 65 73 68 69 72 65  |......  Cheshire|
00000040  2e 0d 09 09 09 09 09 09  20 20 20 53 4b 31 30 20  |........   SK10 |
00000050  33 44 4a 2e 0d 0d 45 44  49 54 0d 3d 3d 3d 3d 0d  |3DJ...EDIT.====.|
00000060  20 20 20 41 20 77 68 69  6c 65 20 61 67 6f 20 49  |   A while ago I|
00000070  20 77 72 6f 74 65 20 61  20 4d 4f 44 45 20 30 20  | wrote a MODE 0 |
00000080  73 63 72 65 65 6e 20 65  64 69 74 6f 72 20 69 6e  |screen editor in|
00000090  20 42 41 53 49 43 20 61  73 20 6d 79 20 73 63 61  | BASIC as my sca|
000000a0  6e 6e 65 72 20 75 73 65  73 0d 74 68 69 73 20 6d  |nner uses.this m|
000000b0  6f 64 65 20 73 6f 20 65  64 69 74 69 6e 67 20 69  |ode so editing i|
000000c0  73 20 65 73 73 65 6e 74  69 61 6c 20 2d 20 73 6f  |s essential - so|
000000d0  72 72 79 20 69 74 27 73  20 61 20 6c 69 74 74 6c  |rry it's a littl|
000000e0  65 20 73 6c 20 6f 77 20  28 49 20 74 68 69 6e 6b  |e sl ow (I think|
000000f0  20 69 74 73 0d 74 68 65  20 68 75 67 65 20 6f 66  | its.the huge of|
00000100  66 73 65 74 20 63 61 6c  63 75 6c 61 74 6f 72 20  |fset calculator |
00000110  73 74 61 72 74 69 6e 67  20 3f 26 33 30 30 30 20  |starting ?&3000 |
00000120  44 49 56 20 4d 4f 44 20  44 49 56 20 4d 4f 44 20  |DIV MOD DIV MOD |
00000130  44 49 56 20 4d 4f 44 0d  65 74 63 2e 2e 2e 29 2e  |DIV MOD.etc...).|
00000140  54 68 69 73 20 69 73 20  6f 6e 20 74 68 65 20 64  |This is on the d|
00000150  69 73 6b 20 74 6f 6f 2e  0d 0d 20 20 20 46 6f 72  |isk too...   For|
00000160  20 74 68 6f 73 65 20 6c  6f 6f 6b 69 6e 67 20 61  | those looking a|
00000170  74 20 74 68 65 20 6c 69  73 74 69 6e 67 20 65 76  |t the listing ev|
00000180  65 72 79 74 68 69 6e 67  20 69 73 20 64 6f 6e 65  |erything is done|
00000190  20 75 73 69 6e 67 20 47  4f 53 55 42 27 73 0d 69  | using GOSUB's.i|
000001a0  6e 73 74 65 61 64 20 6f  66 20 50 52 4f 43 27 73  |nstead of PROC's|
000001b0  20 62 65 63 61 75 73 65  20 74 68 65 72 65 20 77  | because there w|
000001c0  61 73 20 6f 6e 65 20 77  68 69 63 68 20 77 6f 75  |as one which wou|
000001d0  6c 64 6e 27 74 20 72 65  74 75 72 6e 20 70 20 72  |ldn't return p r|
000001e0  6f 70 65 72 6c 79 20 28  61 0d 62 75 67 20 69 6e  |operly (a.bug in|
000001f0  20 42 41 53 49 43 3f 3f  29 2c 61 6e 64 20 61 6c  | BASIC??),and al|
00000200  73 6f 20 74 68 65 72 65  20 69 73 20 6c 65 73 73  |so there is less|
00000210  20 74 68 61 6e 20 32 35  36 20 62 79 74 65 73 20  | than 256 bytes |
00000220  6f 66 20 66 72 65 65 20  6d 65 6d 6f 72 79 20 69  |of free memory i|
00000230  66 20 49 0d 72 65 6d 65  6d 62 65 72 20 63 6f 72  |f I.remember cor|
00000240  72 65 63 74 6c 79 20 77  68 69 63 68 20 6d 61 6b  |rectly which mak|
00000250  65 73 20 50 52 4f 43 27  73 20 69 6d 70 6f 73 73  |es PROC's imposs|
00000260  69 62 6c 20 65 20 74 6f  20 64 6f 20 61 73 20 42  |ibl e to do as B|
00000270  41 53 49 43 20 63 6f 70  69 65 73 0d 74 68 65 20  |ASIC copies.the |
00000280  36 35 30 32 20 73 74 61  63 6b 20 6f 6e 74 6f 20  |6502 stack onto |
00000290  74 68 65 20 42 41 53 49  43 20 73 74 61 63 6b 20  |the BASIC stack |
000002a0  64 75 72 69 6e 67 20 61  20 50 52 4f 43 20 2d 20  |during a PROC - |
000002b0  72 65 73 75 6c 74 69 6e  67 20 69 6e 20 61 20 6e  |resulting in a n|
000002c0  6f 20 72 6f 6f 6d 0d 65  72 72 6f 72 2e 0d 0d 20  |o room.error... |
000002d0  20 20 46 75 72 74 68 65  72 20 64 65 74 61 69 6c  |  Further detail|
000002e0  73 20 61 70 70 65 61 72  20 69 6e 20 74 68 65 20  |s appear in the |
000002f0  45 44 49 54 52 45 4d 20  70 72 6f 67 72 61 6d 0d  |EDITREM program.|
00000300  0d 20 20 20 53 69 6e 63  65 20 74 68 65 6e 20 49  |.   Since then I|
00000310  20 68 61 76 65 20 67 69  76 65 6e 20 75 70 20 6f  | have given up o|
00000320  6e 20 74 68 65 20 42 42  43 20 74 6f 20 65 64 69  |n the BBC to edi|
00000330  74 20 73 63 61 6e 73 20  2d 20 69 6e 73 74 65 61  |t scans - instea|
00000340  64 20 49 20 73 65 6e 64  0d 74 68 65 6d 20 75 70  |d I send.them up|
00000350  20 61 20 73 65 72 69 61  6c 20 6c 69 6e 6b 20 74  | a serial link t|
00000360  6f 20 6d 79 20 50 43 20  61 73 20 57 69 6e 64 6f  |o my PC as Windo|
00000370  77 73 20 42 4d 50 20 66  69 6c 65 73 20 61 6e 64  |ws BMP files and|
00000380  20 65 64 69 74 20 74 68  65 6d 20 69 6e 0d 27 4e  | edit them in.'N|
00000390  65 6f 50 61 69 6e 74 27  20 74 68 65 6e 20 73 65  |eoPaint' then se|
000003a0  6e 64 20 74 68 65 6d 20  62 61 63 6b 20 77 68 65  |nd them back whe|
000003b0  6e 20 49 27 76 65 20 66  69 6e 69 73 68 65 64 3a  |n I've finished:|
000003c0  20 62 65 6c 69 65 76 65  20 6d 65 20 20 69 74 20  | believe me  it |
000003d0  69 73 0d 66 61 73 74 65  72 20 69 6e 20 74 68 65  |is.faster in the|
000003e0  20 6c 6f 6e 67 20 72 75  6e 2e 49 6e 63 69 64 65  | long run.Incide|
000003f0  6e 74 61 6c 6c 79 20 74  68 69 73 20 6c 65 74 74  |ntally this lett|
00000400  65 72 20 77 61 73 20 74  79 70 20 65 64 20 6f 6e  |er was typ ed on|
00000410  20 6d 79 20 50 43 20 74  6f 6f 20 0d 0d 52 6f 62  | my PC too ..Rob|
00000420  65 72 74 20 53 70 72 6f  77 73 6f 6e 2e 0d 24 2e  |ert Sprowson..$.|
00000430  45 44 49 54 0d 0d 54 79  70 65 20 43 48 41 49 4e  |EDIT..Type CHAIN|
00000440  22 45 44 49 54 22 2e 54  68 65 6e 20 61 74 20 74  |"EDIT".Then at t|
00000450  68 65 20 70 72 6f 6d 70  74 20 74 79 70 65 20 74  |he prompt type t|
00000460  68 65 20 6e 61 6d 65 2c  69 6e 63 6c 75 64 69 6e  |he name,includin|
00000470  67 20 64 69 72 65 63 74  6f 72 79 2c 6f 66 20 74  |g directory,of t|
00000480  68 65 20 66 69 6c 65 20  74 6f 20 6f 70 65 6e 2e  |he file to open.|
00000490  49 66 20 6e 65 63 65 73  73 61 72 79 20 69 6e 73  |If necessary ins|
000004a0  65 72 74 20 74 68 65 20  64 69 73 6b 20 77 69 74  |ert the disk wit|
000004b0  68 20 74 68 65 20 66 69  6c 65 0d 20 6f 6e 20 69  |h the file. on i|
000004c0  6e 20 74 68 65 20 64 69  73 6b 20 64 72 69 76 65  |n the disk drive|
000004d0  2c 74 68 65 20 77 68 65  6e 20 74 68 65 20 73 70  |,the when the sp|
000004e0  65 61 6b 65 72 20 62 65  65 70 73 20 72 65 70 6c  |eaker beeps repl|
000004f0  61 63 65 20 74 68 65 20  6f 72 69 67 69 6e 61 6c  |ace the original|
00000500  20 70 72 6f 67 72 61 6d  20 64 69 73 6b 2e 0d 0d  | program disk...|
00000510  43 55 52 53 4f 52 53 20  3d 20 20 6d 6f 76 65 20  |CURSORS =  move |
00000520  70 69 78 65 6c 20 70 6f  69 6e 74 65 72 20 61 72  |pixel pointer ar|
00000530  6f 75 6e 64 20 74 68 65  20 73 63 72 65 65 6e 0d  |ound the screen.|
00000540  53 50 41 43 45 20 20 20  3d 20 20 72 65 76 65 61  |SPACE   =  revea|
00000550  6c 20 77 68 65 72 65 20  74 68 65 20 63 75 72 73  |l where the curs|
00000560  6f 72 20 63 75 72 72 65  6e 74 6c 79 20 69 73 0d  |or currently is.|
00000570  53 20 20 20 20 20 20 20  3d 20 20 73 61 76 65 20  |S       =  save |
00000580  74 68 65 20 69 6d 61 67  65 20 74 6f 20 74 68 65  |the image to the|
00000590  20 66 69 6c 65 20 24 2e  4f 55 54 50 55 54 20 6f  | file $.OUTPUT o|
000005a0  6e 20 74 68 65 20 70 72  6f 67 72 61 6d 20 64 69  |n the program di|
000005b0  73 6b 0d 4d 20 20 20 20  20 20 20 3d 20 20 6d 6f  |sk.M       =  mo|
000005c0  76 65 20 74 68 65 20 73  65 6c 65 63 74 65 64 20  |ve the selected |
000005d0  61 72 65 61 2e 44 72 61  67 20 61 20 62 6f 78 20  |area.Drag a box |
000005e0  6f 75 74 20 74 68 65 6e  20 70 72 65 73 73 20 43  |out then press C|
000005f0  4f 50 59 2e 44 72 61 67  20 74 68 65 20 0d 20 20  |OPY.Drag the .  |
00000600  20 20 20 20 20 20 20 20  20 6d 6f 76 69 6e 67 20  |         moving |
00000610  62 6f 78 20 74 68 65 6e  20 70 72 65 73 73 20 43  |box then press C|
00000620  4f 50 59 20 74 6f 20 70  61 73 74 65 20 69 74 0d  |OPY to paste it.|
00000630  50 20 20 20 20 20 20 20  3d 20 20 70 61 73 74 65  |P       =  paste|
00000640  20 74 68 65 20 69 6d 61  67 65 20 63 75 72 72 65  | the image curre|
00000650  6e 74 6c 79 20 68 65 6c  64 20 6f 6e 20 74 68 65  |ntly held on the|
00000660  20 63 6c 69 70 62 6f 61  72 64 20 28 24 2e 45 44  | clipboard ($.ED|
00000670  49 54 43 4c 50 29 0d 43  20 20 20 20 20 20 20 3d  |ITCLP).C       =|
00000680  20 20 63 6f 70 79 2c 73  61 6d 65 20 70 72 6f 63  |  copy,same proc|
00000690  65 64 75 72 65 20 61 73  20 6d 6f 76 65 0d 46 20  |edure as move.F |
000006a0  20 20 20 20 20 20 3d 20  20 66 69 6c 6c 2c 66 69  |      =  fill,fi|
000006b0  72 73 74 20 63 68 6f 6f  73 65 20 77 68 65 74 68  |rst choose wheth|
000006c0  65 72 20 74 6f 20 66 69  6c 6c 20 42 6c 61 63 6b  |er to fill Black|
000006d0  2f 47 72 65 79 2f 57 68  69 74 65 2c 74 68 65 6e  |/Grey/White,then|
000006e0  20 64 72 61 67 20 0d 20  20 20 20 20 20 20 20 20  | drag .         |
000006f0  20 20 6f 75 74 20 61 20  62 6f 78 20 74 6f 20 74  |  out a box to t|
00000700  68 65 20 61 72 65 61 20  74 6f 20 62 65 20 66 69  |he area to be fi|
00000710  6c 6c 65 64 2c 74 68 65  6e 20 70 72 65 73 73 20  |lled,then press |
00000720  43 4f 50 59 2e 54 68 65  20 0d 20 20 20 20 20 20  |COPY.The .      |
00000730  20 20 20 20 20 63 6c 69  70 62 6f 61 72 64 20 69  |     clipboard i|
00000740  73 20 75 6e 61 66 66 65  63 74 65 64 0d 42 20 20  |s unaffected.B  |
00000750  20 20 20 20 20 3d 20 20  62 6f 78 20 74 68 65 20  |     =  box the |
00000760  61 72 65 61 20 62 79 20  64 72 61 67 67 69 6e 67  |area by dragging|
00000770  20 61 20 62 6f 78 20 61  73 20 75 73 75 61 6c 2c  | a box as usual,|
00000780  61 6e 64 20 6c 65 61 76  65 20 69 74 20 74 68 65  |and leave it the|
00000790  72 65 20 6f 6e 20 0d 20  20 20 20 20 20 20 20 20  |re on .         |
000007a0  20 20 70 72 65 73 73 69  6e 67 20 43 4f 50 59 0d  |  pressing COPY.|
000007b0  54 20 20 20 20 20 20 20  3d 20 20 74 79 70 65 20  |T       =  type |
000007c0  74 65 78 74 20 28 44 4f  20 4e 4f 54 20 70 72 65  |text (DO NOT pre|
000007d0  73 73 20 64 65 6c 65 74  65 29 20 61 74 20 74 68  |ss delete) at th|
000007e0  65 20 63 75 72 72 65 6e  74 20 63 75 72 73 6f 72  |e current cursor|
000007f0  20 0d 20 20 20 20 20 20  20 20 20 20 20 70 6f 73  | .           pos|
00000800  69 74 69 6f 6e 2c 69 66  20 72 65 74 75 72 6e 20  |ition,if return |
00000810  69 73 20 70 72 65 73 73  65 64 20 74 68 65 20 74  |is pressed the t|
00000820  65 78 74 20 69 73 20 73  65 74 20 69 6e 20 63 6f  |ext is set in co|
00000830  6c 75 6d 6e 73 0d 45 20  20 20 20 20 20 20 3d 20  |lumns.E       = |
00000840  20 63 61 6c 6c 20 65 64  69 74 6f 72 2e 44 72 61  | call editor.Dra|
00000850  67 20 6f 75 74 20 61 6e  20 61 72 65 61 2c 74 68  |g out an area,th|
00000860  65 6e 20 70 72 65 73 73  20 43 4f 50 59 2e 54 68  |en press COPY.Th|
00000870  65 20 63 68 6f 73 65 6e  20 61 72 65 61 20 69 73  |e chosen area is|
00000880  20 0d 20 20 20 20 20 20  20 20 20 20 20 73 61 76  | .           sav|
00000890  65 64 20 61 6e 64 20 73  6f 20 69 73 20 74 68 65  |ed and so is the|
000008a0  20 63 75 72 72 65 6e 74  20 73 63 72 65 65 6e 20  | current screen |
000008b0  28 74 6f 20 24 2e 4f 55  54 50 55 54 29 2e 54 68  |(to $.OUTPUT).Th|
000008c0  65 20 73 63 72 65 65 6e  20 0d 20 20 20 20 20 20  |e screen .      |
000008d0  20 20 20 20 20 6d 6f 64  65 20 74 68 65 6e 20 63  |     mode then c|
000008e0  68 61 6e 67 65 73 20 61  6e 64 20 74 68 65 20 61  |hanges and the a|
000008f0  72 65 61 20 63 61 6e 20  62 65 20 65 64 69 74 65  |rea can be edite|
00000900  64 20 75 73 69 6e 67 20  54 41 42 20 61 6e 64 20  |d using TAB and |
00000910  74 68 65 20 0d 20 20 20  20 20 20 20 20 20 20 20  |the .           |
00000920  63 75 72 73 6f 72 20 6b  65 79 73 2e 50 72 65 73  |cursor keys.Pres|
00000930  73 20 43 4f 50 59 20 74  6f 20 6f 76 65 72 6c 61  |s COPY to overla|
00000940  79 20 74 68 65 20 6d 6f  64 69 66 69 65 64 20 76  |y the modified v|
00000950  65 72 73 69 6f 6e 2e 0d  0d                       |ersion...|
00000959
P/Edit1.m0
P/Edit1.m1
P/Edit1.m2
P/Edit1.m4
P/Edit1.m5