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

P/EDITENL

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/EDITENL
Read OK:
File size: 062E bytes
Load address: 1900
Exec address: FFFF8023
Duplicates

There is 1 duplicate copy of this file in the archive:

File contents
   10REM mode 0 enlarged to mode 5
   20F=OPENIN"EDITCLP":INPUT#F,TLX:INPUT#F,TLY:INPUT#F,BRX:INPUT#F,BRY
   30REM load in from 0,0 getting top left x,y bottom right x,y from file
   40MODE5:VDU23,0,10,12,0,0,0,0,0,0:F=OPENIN"EDITCLP":INPUT#F,TLX:INPUT#F,TLY:INPUT#F,BRX:INPUT#F,BRY:SCRN=&5800-&140:SVTLX=TLX:REM scrn mem less &140 - added back on soon
   50FORY=0TO(BRY-TLY):TLX=SVTLX:TMPX=0:SCRN=SCRN+&140:LOC=SCRN
   60A=BGET#F
   70OVR=AAND(2^(7-(TLXMOD8)))
   80FLG=(OVRDIV(2^(7-(TLXMOD8))))
   90IFFLG=1THENFORPASS=LOCTOLOC+7:?PASS=255:NEXT
  100TMPX=TMPX+1:TLX=TLX+1:LOC=LOC+8
  110IF(TLXMOD8)=0ANDTLX<=BRXTHENGOTO60
  120IF(TLXMOD8)<>0ANDTLX<=BRXTHENGOTO70ELSENEXT
  130CLOSE#0
  140REM editor now
  150*FX4,1
  160X=0:Y=0:PRINTTAB(0,31);"Editing (";X;",";Y;")  ";:REM setup topleft 
  170A=GET
  180IFA=136ORA=137THENX=X+(-2*(136.5-A))
  190IFA=138ORA=139THENY=Y+(2*(138.5-A))
  200IFX>39THENX=39
  210IFX<0THENX=0
  220IFY>29THENY=29
  230IFY<0THENY=0
  240PRINTTAB(0,31);"Editing (";X;",";Y;")  ";
  250IFA=9THENA=?(&5800+(Y*&140)+(X*8)):FORPASS=(&5800+(Y*&140)+(X*8))TO(&5800+(Y*&140)+(X*8)+7):?PASS=AEOR255:NEXT:GOTO170
  260IFA<>135THENGOTO170:REM copy to save
  270PRINTTAB(0,31);"Saving to clipboard";
  280F=OPENOUT"EDITCLP":CLOSE#F
  290*DELETE EDITCLP
  300F=OPENOUT"EDITCLP":PASS=0:PRINT#F,SVTLX,TLY,BRX,BRY
  310REM if TLX wasn't conveniently ~8 then and offset (LOC) is added to save some blank bits in its place
  320FORY=0TO(BRY-TLY)
  330LOC=SVTLXMOD8
  340FORX=0TO(BRX-SVTLX)
  350A=?(&5800+(Y*&140)+(X*8))
  360IFA=255THENPASS=PASS+(2^(7-(LOCMOD8)))
  370LOC=LOC+1:IF(LOCMOD8)=0ORX=(BRX-SVTLX)THENBPUT#F,PASS:PASS=0
  380NEXT:NEXT:CLOSE#F
  390PRINTTAB(0,31);"Reloading original ";:TIME=0:REPEAT:UNTILTIME>150
  400MODE0:OSCLI("LOAD $.OUTPUT 3000"):?&3000=?&3000 EOR 128:OSCLI("FX138,0,80"):CHAIN"EDITCRE"
  410REM That loads in the piccy,sets up the cursor,stuffs the keyboard with 'P' and then runs the editor

� mode 0 enlarged to mode 5
0F=�"EDITCLP":�#F,TLX:�#F,TLY:�#F,BRX:�#F,BRY
F� load in from 0,0 getting top left x,y bottom right x,y from file
(��5:�23,0,10,12,0,0,0,0,0,0:F=�"EDITCLP":�#F,TLX:�#F,TLY:�#F,BRX:�#F,BRY:SCRN=&5800-&140:SVTLX=TLX:� scrn mem less &140 - added back on soon
2;�Y=0�(BRY-TLY):TLX=SVTLX:TMPX=0:SCRN=SCRN+&140:LOC=SCRN
<	A=�#F
FOVR=A�(2^(7-(TLX�8)))
PFLG=(OVR�(2^(7-(TLX�8))))
Z&�FLG=1��PASS=LOC�LOC+7:?PASS=255:�
d#TMPX=TMPX+1:TLX=TLX+1:LOC=LOC+8
n�(TLX�8)=0�TLX<=BRX��T|@
x �(TLX�8)<>0�TLX<=BRX��DF@��
��#0
�� editor now
�
*FX4,1
�?X=0:Y=0:�0,31);"Editing (";X;",";Y;")  ";:� setup topleft 
�A=�
�#�A=136�A=137�X=X+(-2*(136.5-A))
�"�A=138�A=139�Y=Y+(2*(138.5-A))
��X>39�X=39
��X<0�X=0
��Y>29�Y=29
��Y<0�Y=0
�&�0,31);"Editing (";X;",";Y;")  ";
�l�A=9�A=?(&5800+(Y*&140)+(X*8)):�PASS=(&5800+(Y*&140)+(X*8))�(&5800+(Y*&140)+(X*8)+7):?PASS=A�255:�:�tj@
 �A<>135��tj@:� copy to save
"�0,31);"Saving to clipboard";
F=�"EDITCLP":�#F
"*DELETE EDITCLP
,-F=�"EDITCLP":PASS=0:�#F,SVTLX,TLY,BRX,BRY
6g� if TLX wasn't conveniently ~8 then and offset (LOC) is added to save some blank bits in its place
@�Y=0�(BRY-TLY)
JLOC=SVTLX�8
T�X=0�(BRX-SVTLX)
^A=?(&5800+(Y*&140)+(X*8))
h$�A=255�PASS=PASS+(2^(7-(LOC�8)))
r6LOC=LOC+1:�(LOC�8)=0�X=(BRX-SVTLX)��#F,PASS:PASS=0
|�:�:�#F
�/�0,31);"Reloading original ";:�=0:�:��>150
�M�0:�("LOAD $.OUTPUT 3000"):?&3000=?&3000 � 128:�("FX138,0,80"):�"EDITCRE"
�f� That loads in the piccy,sets up the cursor,stuffs the keyboard with 'P' and then runs the editor
�
00000000  0d 00 0a 1f f4 20 6d 6f  64 65 20 30 20 65 6e 6c  |..... mode 0 enl|
00000010  61 72 67 65 64 20 74 6f  20 6d 6f 64 65 20 35 0d  |arged to mode 5.|
00000020  00 14 30 46 3d 8e 22 45  44 49 54 43 4c 50 22 3a  |..0F=."EDITCLP":|
00000030  e8 23 46 2c 54 4c 58 3a  e8 23 46 2c 54 4c 59 3a  |.#F,TLX:.#F,TLY:|
00000040  e8 23 46 2c 42 52 58 3a  e8 23 46 2c 42 52 59 0d  |.#F,BRX:.#F,BRY.|
00000050  00 1e 46 f4 20 6c 6f 61  64 20 69 6e 20 66 72 6f  |..F. load in fro|
00000060  6d 20 30 2c 30 20 67 65  74 74 69 6e 67 20 74 6f  |m 0,0 getting to|
00000070  70 20 6c 65 66 74 20 78  2c 79 20 62 6f 74 74 6f  |p left x,y botto|
00000080  6d 20 72 69 67 68 74 20  78 2c 79 20 66 72 6f 6d  |m right x,y from|
00000090  20 66 69 6c 65 0d 00 28  8f eb 35 3a ef 32 33 2c  | file..(..5:.23,|
000000a0  30 2c 31 30 2c 31 32 2c  30 2c 30 2c 30 2c 30 2c  |0,10,12,0,0,0,0,|
000000b0  30 2c 30 3a 46 3d 8e 22  45 44 49 54 43 4c 50 22  |0,0:F=."EDITCLP"|
000000c0  3a e8 23 46 2c 54 4c 58  3a e8 23 46 2c 54 4c 59  |:.#F,TLX:.#F,TLY|
000000d0  3a e8 23 46 2c 42 52 58  3a e8 23 46 2c 42 52 59  |:.#F,BRX:.#F,BRY|
000000e0  3a 53 43 52 4e 3d 26 35  38 30 30 2d 26 31 34 30  |:SCRN=&5800-&140|
000000f0  3a 53 56 54 4c 58 3d 54  4c 58 3a f4 20 73 63 72  |:SVTLX=TLX:. scr|
00000100  6e 20 6d 65 6d 20 6c 65  73 73 20 26 31 34 30 20  |n mem less &140 |
00000110  2d 20 61 64 64 65 64 20  62 61 63 6b 20 6f 6e 20  |- added back on |
00000120  73 6f 6f 6e 0d 00 32 3b  e3 59 3d 30 b8 28 42 52  |soon..2;.Y=0.(BR|
00000130  59 2d 54 4c 59 29 3a 54  4c 58 3d 53 56 54 4c 58  |Y-TLY):TLX=SVTLX|
00000140  3a 54 4d 50 58 3d 30 3a  53 43 52 4e 3d 53 43 52  |:TMPX=0:SCRN=SCR|
00000150  4e 2b 26 31 34 30 3a 4c  4f 43 3d 53 43 52 4e 0d  |N+&140:LOC=SCRN.|
00000160  00 3c 09 41 3d 9a 23 46  0d 00 46 19 4f 56 52 3d  |.<.A=.#F..F.OVR=|
00000170  41 80 28 32 5e 28 37 2d  28 54 4c 58 83 38 29 29  |A.(2^(7-(TLX.8))|
00000180  29 0d 00 50 1d 46 4c 47  3d 28 4f 56 52 81 28 32  |)..P.FLG=(OVR.(2|
00000190  5e 28 37 2d 28 54 4c 58  83 38 29 29 29 29 0d 00  |^(7-(TLX.8))))..|
000001a0  5a 26 e7 46 4c 47 3d 31  8c e3 50 41 53 53 3d 4c  |Z&.FLG=1..PASS=L|
000001b0  4f 43 b8 4c 4f 43 2b 37  3a 3f 50 41 53 53 3d 32  |OC.LOC+7:?PASS=2|
000001c0  35 35 3a ed 0d 00 64 23  54 4d 50 58 3d 54 4d 50  |55:...d#TMPX=TMP|
000001d0  58 2b 31 3a 54 4c 58 3d  54 4c 58 2b 31 3a 4c 4f  |X+1:TLX=TLX+1:LO|
000001e0  43 3d 4c 4f 43 2b 38 0d  00 6e 1d e7 28 54 4c 58  |C=LOC+8..n..(TLX|
000001f0  83 38 29 3d 30 80 54 4c  58 3c 3d 42 52 58 8c e5  |.8)=0.TLX<=BRX..|
00000200  8d 54 7c 40 0d 00 78 20  e7 28 54 4c 58 83 38 29  |.T|@..x .(TLX.8)|
00000210  3c 3e 30 80 54 4c 58 3c  3d 42 52 58 8c e5 8d 44  |<>0.TLX<=BRX...D|
00000220  46 40 8b ed 0d 00 82 07  d9 23 30 0d 00 8c 10 f4  |F@.......#0.....|
00000230  20 65 64 69 74 6f 72 20  6e 6f 77 0d 00 96 0a 2a  | editor now....*|
00000240  46 58 34 2c 31 0d 00 a0  3f 58 3d 30 3a 59 3d 30  |FX4,1...?X=0:Y=0|
00000250  3a f1 8a 30 2c 33 31 29  3b 22 45 64 69 74 69 6e  |:..0,31);"Editin|
00000260  67 20 28 22 3b 58 3b 22  2c 22 3b 59 3b 22 29 20  |g (";X;",";Y;") |
00000270  20 22 3b 3a f4 20 73 65  74 75 70 20 74 6f 70 6c  | ";:. setup topl|
00000280  65 66 74 20 0d 00 aa 07  41 3d a5 0d 00 b4 23 e7  |eft ....A=....#.|
00000290  41 3d 31 33 36 84 41 3d  31 33 37 8c 58 3d 58 2b  |A=136.A=137.X=X+|
000002a0  28 2d 32 2a 28 31 33 36  2e 35 2d 41 29 29 0d 00  |(-2*(136.5-A))..|
000002b0  be 22 e7 41 3d 31 33 38  84 41 3d 31 33 39 8c 59  |.".A=138.A=139.Y|
000002c0  3d 59 2b 28 32 2a 28 31  33 38 2e 35 2d 41 29 29  |=Y+(2*(138.5-A))|
000002d0  0d 00 c8 0e e7 58 3e 33  39 8c 58 3d 33 39 0d 00  |.....X>39.X=39..|
000002e0  d2 0c e7 58 3c 30 8c 58  3d 30 0d 00 dc 0e e7 59  |...X<0.X=0.....Y|
000002f0  3e 32 39 8c 59 3d 32 39  0d 00 e6 0c e7 59 3c 30  |>29.Y=29.....Y<0|
00000300  8c 59 3d 30 0d 00 f0 26  f1 8a 30 2c 33 31 29 3b  |.Y=0...&..0,31);|
00000310  22 45 64 69 74 69 6e 67  20 28 22 3b 58 3b 22 2c  |"Editing (";X;",|
00000320  22 3b 59 3b 22 29 20 20  22 3b 0d 00 fa 6c e7 41  |";Y;")  ";...l.A|
00000330  3d 39 8c 41 3d 3f 28 26  35 38 30 30 2b 28 59 2a  |=9.A=?(&5800+(Y*|
00000340  26 31 34 30 29 2b 28 58  2a 38 29 29 3a e3 50 41  |&140)+(X*8)):.PA|
00000350  53 53 3d 28 26 35 38 30  30 2b 28 59 2a 26 31 34  |SS=(&5800+(Y*&14|
00000360  30 29 2b 28 58 2a 38 29  29 b8 28 26 35 38 30 30  |0)+(X*8)).(&5800|
00000370  2b 28 59 2a 26 31 34 30  29 2b 28 58 2a 38 29 2b  |+(Y*&140)+(X*8)+|
00000380  37 29 3a 3f 50 41 53 53  3d 41 82 32 35 35 3a ed  |7):?PASS=A.255:.|
00000390  3a e5 8d 74 6a 40 0d 01  04 20 e7 41 3c 3e 31 33  |:..tj@... .A<>13|
000003a0  35 8c e5 8d 74 6a 40 3a  f4 20 63 6f 70 79 20 74  |5...tj@:. copy t|
000003b0  6f 20 73 61 76 65 0d 01  0e 22 f1 8a 30 2c 33 31  |o save..."..0,31|
000003c0  29 3b 22 53 61 76 69 6e  67 20 74 6f 20 63 6c 69  |);"Saving to cli|
000003d0  70 62 6f 61 72 64 22 3b  0d 01 18 14 46 3d ae 22  |pboard";....F=."|
000003e0  45 44 49 54 43 4c 50 22  3a d9 23 46 0d 01 22 13  |EDITCLP":.#F..".|
000003f0  2a 44 45 4c 45 54 45 20  45 44 49 54 43 4c 50 0d  |*DELETE EDITCLP.|
00000400  01 2c 2d 46 3d ae 22 45  44 49 54 43 4c 50 22 3a  |.,-F=."EDITCLP":|
00000410  50 41 53 53 3d 30 3a f1  23 46 2c 53 56 54 4c 58  |PASS=0:.#F,SVTLX|
00000420  2c 54 4c 59 2c 42 52 58  2c 42 52 59 0d 01 36 67  |,TLY,BRX,BRY..6g|
00000430  f4 20 69 66 20 54 4c 58  20 77 61 73 6e 27 74 20  |. if TLX wasn't |
00000440  63 6f 6e 76 65 6e 69 65  6e 74 6c 79 20 7e 38 20  |conveniently ~8 |
00000450  74 68 65 6e 20 61 6e 64  20 6f 66 66 73 65 74 20  |then and offset |
00000460  28 4c 4f 43 29 20 69 73  20 61 64 64 65 64 20 74  |(LOC) is added t|
00000470  6f 20 73 61 76 65 20 73  6f 6d 65 20 62 6c 61 6e  |o save some blan|
00000480  6b 20 62 69 74 73 20 69  6e 20 69 74 73 20 70 6c  |k bits in its pl|
00000490  61 63 65 0d 01 40 12 e3  59 3d 30 b8 28 42 52 59  |ace..@..Y=0.(BRY|
000004a0  2d 54 4c 59 29 0d 01 4a  0f 4c 4f 43 3d 53 56 54  |-TLY)..J.LOC=SVT|
000004b0  4c 58 83 38 0d 01 54 14  e3 58 3d 30 b8 28 42 52  |LX.8..T..X=0.(BR|
000004c0  58 2d 53 56 54 4c 58 29  0d 01 5e 1d 41 3d 3f 28  |X-SVTLX)..^.A=?(|
000004d0  26 35 38 30 30 2b 28 59  2a 26 31 34 30 29 2b 28  |&5800+(Y*&140)+(|
000004e0  58 2a 38 29 29 0d 01 68  24 e7 41 3d 32 35 35 8c  |X*8))..h$.A=255.|
000004f0  50 41 53 53 3d 50 41 53  53 2b 28 32 5e 28 37 2d  |PASS=PASS+(2^(7-|
00000500  28 4c 4f 43 83 38 29 29  29 0d 01 72 36 4c 4f 43  |(LOC.8)))..r6LOC|
00000510  3d 4c 4f 43 2b 31 3a e7  28 4c 4f 43 83 38 29 3d  |=LOC+1:.(LOC.8)=|
00000520  30 84 58 3d 28 42 52 58  2d 53 56 54 4c 58 29 8c  |0.X=(BRX-SVTLX).|
00000530  d5 23 46 2c 50 41 53 53  3a 50 41 53 53 3d 30 0d  |.#F,PASS:PASS=0.|
00000540  01 7c 0b ed 3a ed 3a d9  23 46 0d 01 86 2f f1 8a  |.|..:.:.#F.../..|
00000550  30 2c 33 31 29 3b 22 52  65 6c 6f 61 64 69 6e 67  |0,31);"Reloading|
00000560  20 6f 72 69 67 69 6e 61  6c 20 22 3b 3a d1 3d 30  | original ";:.=0|
00000570  3a f5 3a fd 91 3e 31 35  30 0d 01 90 4d eb 30 3a  |:.:..>150...M.0:|
00000580  ff 28 22 4c 4f 41 44 20  24 2e 4f 55 54 50 55 54  |.("LOAD $.OUTPUT|
00000590  20 33 30 30 30 22 29 3a  3f 26 33 30 30 30 3d 3f  | 3000"):?&3000=?|
000005a0  26 33 30 30 30 20 82 20  31 32 38 3a ff 28 22 46  |&3000 . 128:.("F|
000005b0  58 31 33 38 2c 30 2c 38  30 22 29 3a d7 22 45 44  |X138,0,80"):."ED|
000005c0  49 54 43 52 45 22 0d 01  9a 66 f4 20 54 68 61 74  |ITCRE"...f. That|
000005d0  20 6c 6f 61 64 73 20 69  6e 20 74 68 65 20 70 69  | loads in the pi|
000005e0  63 63 79 2c 73 65 74 73  20 75 70 20 74 68 65 20  |ccy,sets up the |
000005f0  63 75 72 73 6f 72 2c 73  74 75 66 66 73 20 74 68  |cursor,stuffs th|
00000600  65 20 6b 65 79 62 6f 61  72 64 20 77 69 74 68 20  |e keyboard with |
00000610  27 50 27 20 61 6e 64 20  74 68 65 6e 20 72 75 6e  |'P' and then run|
00000620  73 20 74 68 65 20 65 64  69 74 6f 72 0d ff        |s the editor..|
0000062e
P/EDITENL.m0
P/EDITENL.m1
P/EDITENL.m2
P/EDITENL.m4
P/EDITENL.m5