Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_25.ADF » X/EDITREM
X/EDITREM
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_25.ADF |
Filename: | X/EDITREM |
Read OK: | ✔ |
File size: | 1928 bytes |
Load address: | FFFF1900 |
Exec address: | FFFF8023 |
File contents
10REM mode 0 screen editor comments 20REM Variables: 30REM M$ current message,DOTX & DOTY current cursor position,STRTX & STRTY start cursor position before dragging 40REM (BRX,BRY) & (TLX,TLY) are bottom right and top left x and y coordinates of the original box that was saved 50REM A is internal counter and inkey and general pass parameters thingy. F is always used as the file#. 60REM OVR is the isolated bit taken from the clipboard file as viewed in the order that it was saved and NOT the order it is being loaded in in.FLG is set 0 if the chosen bit (see OVR) wasn't set and vice versa 70REM PASS is a counting loop used in the MODE5 module and also when drawing a box (hence will always be a mutliple of 2) 80REM SCRN is used in the MODE5 module,and is initially set to &140 less that the bottom of the screen memory (as in the genric section that follows &140 is added back on) for the mode.LOC is the current byte in question,being poked 90REM SVTLX is used in the two versions of the loadin routine (see MODE5 module and around line 700) to keep the original value saved while the actual value is incremented 100REM TMPX and TMPY are used to provide compatibilty between routines - ie.to pass parameters and count things in loops 110REM CNSTY and CNSTX are used when dragging out a box and effectively set the step of the FOR...NEXT loop to enable the box the be dragged from any corner 120REM HINDX and EINDX are used for when the appropriate whole selected bytes are to be saved.Home index is how many bits in from the MSB of the byte the cursor is at and End index is how many bits in from the MSB too 130REM VDU23,0,10,12... is used to disable the cursor.If there are any suspicious +1's anywhere it is usually because natural numbers start and 1 but the co-ordinate system starts at 0,0 140REM Filenames: 150REM EDIT is the startup and load in part ; EDITTMP is used internally as a temporary file when the move option is chosen and will be deleted ; EDITCRE the core program which is where almost all execution time is spent 160REM EDITENL contains the pixel by pixel editor ; EDITCLP is the clipboard file in the format (strtx,strty)(dotx,doty)(bytes... 170REM To avoid the can't extend error ensure the disk is *compacted.No it won't run accross the tube as it pokes memory addresses 180REM Errors: 190REM within the core program only ; 'SIZE?' means that the selected area to zoom in on was greater than 30x40 ; 'WIDTH?' and 'DEPTH?' means that the selected area didn't enclose any pixels ; 'CANNOT' is given by the paste command if there is no 200REM clipboard file on the disk 210REM Blow by blow: 220REM EDIT>>> 230REM FX3,4 restores output to the screen when re-entering fron 'editenl' as it is turned off in that program to jab keys into the keyboard buffer ; FX4,1 makes the cursors ASCii ; HIMEM is dropped as the message area is stored here later 240REM FX12,8 slows the keyboard repeat to prevent delays while the pixel-pointer catches up with the keyboard buffer 250REM EDITCRE>>> 260REM Is made up of many gosubs each of which are used by the command table right at the beginning.In order of appearance they are 270REM Keypresses are detected and if cursor keys then the pixel-pointer is move else check is it is one of the reserved words 280REM Save what was in the message area (eight letters each taking 8 bytes) just below screen memory then print the message using MOVE and VDU5 then restore those bytes 290REM Highlight the cursor with a 2x2 box by starting (x-2,y-2) from the current cursor position the increasing the co-ordinates.If the point is off the screen then nothing is plotted to avoid half the box appearing on the other side of the screen 300REM mass calculation to locate any pixel on the screen using true (x,y) co-ordinates measured from top left (0,0) to bottom right (639,255) 310REM Expand a box by seeing which of the cursors was pressed and adding or subtracting from DOTn.CNSTX and CNSTY allow the box to be dragged starting at any corner,although on pressing chrs(135) they are sorted into size order so that STRTn is 320REM top left and DOTn is bottom right.If the box has no depth or width then the user will be alerted of this 330REM Move box by adding to BOTH STRTn and DOTn instead of just DOTn as above.On pressing chrs(135) it returns 340REM Save boxed area to nearest whole byte (the individual bits required from each end is calculated later) 350REM Loadin by getting a byte from the file,ANDing it with a mask,and then checking whether the chosen bit is set.Then get byte from screen memory,AND it with a negative mask to ensure the selected bit is set 0.Or the two together 360REM Clear the area temporarily renames the clipboard file,then creates its own by saving a load of VAL(M$),using M$ to save variable names.Load in that file,and restore the clipboard.255=white;0=black,170=(10101010) therefore grey 370REM Select black,grey,or white.No default,if the question is not answered it is asked again. 380REM Get co-ordinates of the area last selected in the clipboard file.If not exist then print 'CANNOT' in the message area 390REM One pass version of the draw a pulsing box.This is only used by the box drawer so that the box is permanently left on the screen 400REM Enter text (delete and copy are disabled).Pressing RETURN puts it in columns.Ex-or's it so that if crossing a black/white boundary it appears 50:50 410REM Procedit drags a box,saves the area,saves the entire screen to $.OUTPUT,then chains the mode5 extention module 420REM EDITENL>>> 430REM Openin the file,to get co-ordinates,remove the cursor with VDU23,define variables and those with I want to save unaltered for later 440REM As with loadin above,except that is flag is set then a whole square is coloured in with a for...next poking 255 into the screen memory 450REM Print current pixel position,which can be increased up to the limit of the screen (29,39). 460REM If tab pressed then ex-or whatever was there with 255 but if pressed chrs(135) then stop the editor and save 470REM Reverse of loadin except that if TLX~8 isn't zero then some blank bits must be saved in the byte before the 'pixels' (squares on the screen) can be evaluated otherwise the file would be ((HINDX+(8-EINDX))*Y too short 480REM Print 'reloading' then emulate what '$.EDIT' does (loads in the screen,turn on the first pixel at TLHC) then insert 'P' into the keyb buffer and run '$.EDITCRE' which then jumps to 'paste' mode to insert the new version 490REM R.Sprowson 3/9/95
#� mode 0 screen editor comments � Variables: p� M$ current message,DOTX & DOTY current cursor position,STRTX & STRTY start cursor position before dragging (p� (BRX,BRY) & (TLX,TLY) are bottom right and top left x and y coordinates of the original box that was saved 2h� A is internal counter and inkey and general pass parameters thingy. F is always used as the file#. <�� OVR is the isolated bit taken from the clipboard file as viewed in the order that it was saved and � the order it is being loaded in in.FLG is set 0 if the chosen bit (see OVR) wasn't set and vice versa Fz� PASS is a counting loop used in the MODE5 module and also when drawing a box (hence will always be a mutliple of 2) P�� SCRN is used in the MODE5 module,and is initially set to &140 less that the bottom of the screen memory (as in the genric section that follows &140 is added back on) for the mode.LOC is the current byte in question,being poked Z�� SVTLX is used in the two versions of the loadin routine (see MODE5 module and around line 700) to keep the original value saved while the actual value is incremented dx� TMPX and TMPY are used to provide compatibilty between routines - ie.to pass parameters and count things in loops n�� CNSTY and CNSTX are used when dragging out a box and effectively set the step of the FOR...NEXT loop to enable the box the be dragged from any corner x�� HINDX and EINDX are used for when the appropriate whole selected bytes are to be saved.Home index is how many bits in from the MSB of the byte the cursor is at and End index is how many bits in from the MSB too ��� �23,0,10,12... is used to disable the cursor.If there are any suspicious +1's anywhere it is usually because natural numbers start and 1 but the co-ordinate system starts at 0,0 �� Filenames: ��� EDIT is the startup and load in part ; EDITTMP is used internally as a temporary file when the move option is chosen and will be deleted ; EDITCRE the core program which is where almost all execution time is spent ��� EDITENL contains the pixel by pixel editor ; EDITCLP is the clipboard file in the format (strtx,strty)(dotx,doty)(bytes... ��� To avoid the can't extend error ensure the disk is *compacted.No it won't run accross the tube as it pokes memory addresses � � Errors: ��� within the core program only ; 'SIZE?' means that the selected area to zoom in on was greater than 30x40 ; 'WIDTH?' and 'DEPTH?' means that the selected area didn't enclose any pixels ; 'CANNOT' is given by the paste command if there is no �!� clipboard file on the disk �� Blow by blow: �� EDIT>>> ��� FX3,4 restores output to the screen when re-entering fron 'editenl' as it is turned off in that program to jab keys into the keyboard buffer ; FX4,1 makes the cursors ASCii ; HIMEM is dropped as the message area is stored here later �t� FX12,8 slows the keyboard repeat to prevent delays while the pixel-pointer catches up with the keyboard buffer �� EDITCRE>>> �� Is made up of many gosubs each of which are used by the command table right at the beginning.In order of appearance they are ~� Keypresses are detected and if cursor keys then the pixel-pointer is move else check is it is one of the reserved words �� Save what was in the message area (eight letters each taking 8 bytes) just below screen memory then print the message using MOVE and VDU5 then restore those bytes "�� Highlight the cursor with a 2x2 box by starting (x-2,y-2) from the current cursor position the increasing the co-ordinates.If the point is off the screen then nothing is plotted to avoid half the box appearing on the other side of the screen ,�� mass calculation to locate any pixel on the screen using true (x,y) co-ordinates measured from top left (0,0) to bottom right (639,255) 6�� Expand a box by seeing which of the cursors was pressed and adding or subtracting from DOTn.CNSTX and CNSTY allow the box to be dragged starting at any corner,although on pressing chrs(135) they are sorted into size order so that STRTn is @o� top left and DOTn is bottom right.If the box has no depth or width then the user will be alerted of this Jo� Move box by adding to BOTH STRTn and DOTn instead of just DOTn as above.On pressing chrs(135) it returns Tm� Save boxed area to nearest whole byte (the individual bits required from each end is calculated later) ^�� Loadin by getting a byte from the file,ANDing it with a mask,and then checking whether the chosen bit is set.Then get byte from screen memory,AND it with a negative mask to ensure the selected bit is set 0.Or the two together h�� Clear the area temporarily renames the clipboard file,then creates its own by saving a load of VAL(M$),using M$ to save variable names.Load in that file,and restore the clipboard.255=white;0=black,170=(10101010) therefore grey r_� Select black,grey,or white.No default,if the question is not answered it is asked again. ||� Get co-ordinates of the area last selected in the clipboard file.If not exist then print 'CANNOT' in the message area ��� One pass version of the draw a pulsing box.This is only used by the box drawer so that the box is permanently left on the screen ��� Enter text (delete and copy are disabled).Pressing RETURN puts it in columns.Ex-or's it so that if crossing a black/white boundary it appears 50:50 �u� Procedit drags a box,saves the area,saves the entire screen to $.OUTPUT,then chains the mode5 extention module �� EDITENL>>> ��� Openin the file,to get co-ordinates,remove the cursor with VDU23,define variables and those with I want to save unaltered for later ��� As with loadin above,except that is flag is set then a whole square is coloured in with a for...next poking 255 into the screen memory �a� Print current pixel position,which can be increased up to the limit of the screen (29,39). �r� If tab pressed then ex-or whatever was there with 255 but if pressed chrs(135) then stop the editor and save ��� Reverse of loadin except that if TLX~8 isn't zero then some blank bits must be saved in the byte before the 'pixels' (squares on the screen) can be evaluated otherwise the file would be ((HINDX+(8-EINDX))*Y too short ��� Print 'reloading' then emulate what '$.EDIT' does (loads in the screen,turn on the first pixel at TLHC) then insert 'P' into the keyb buffer and run '$.EDITCRE' which then jumps to 'paste' mode to insert the new version �� R.Sprowson 3/9/95 �
00000000 0d 00 0a 23 f4 20 6d 6f 64 65 20 30 20 73 63 72 |...#. mode 0 scr| 00000010 65 65 6e 20 65 64 69 74 6f 72 20 63 6f 6d 6d 65 |een editor comme| 00000020 6e 74 73 0d 00 14 10 f4 20 56 61 72 69 61 62 6c |nts..... Variabl| 00000030 65 73 3a 0d 00 1e 70 f4 20 4d 24 20 63 75 72 72 |es:...p. M$ curr| 00000040 65 6e 74 20 6d 65 73 73 61 67 65 2c 44 4f 54 58 |ent message,DOTX| 00000050 20 26 20 44 4f 54 59 20 63 75 72 72 65 6e 74 20 | & DOTY current | 00000060 63 75 72 73 6f 72 20 70 6f 73 69 74 69 6f 6e 2c |cursor position,| 00000070 53 54 52 54 58 20 26 20 53 54 52 54 59 20 73 74 |STRTX & STRTY st| 00000080 61 72 74 20 63 75 72 73 6f 72 20 70 6f 73 69 74 |art cursor posit| 00000090 69 6f 6e 20 62 65 66 6f 72 65 20 64 72 61 67 67 |ion before dragg| 000000a0 69 6e 67 0d 00 28 70 f4 20 28 42 52 58 2c 42 52 |ing..(p. (BRX,BR| 000000b0 59 29 20 26 20 28 54 4c 58 2c 54 4c 59 29 20 61 |Y) & (TLX,TLY) a| 000000c0 72 65 20 62 6f 74 74 6f 6d 20 72 69 67 68 74 20 |re bottom right | 000000d0 61 6e 64 20 74 6f 70 20 6c 65 66 74 20 78 20 61 |and top left x a| 000000e0 6e 64 20 79 20 63 6f 6f 72 64 69 6e 61 74 65 73 |nd y coordinates| 000000f0 20 6f 66 20 74 68 65 20 6f 72 69 67 69 6e 61 6c | of the original| 00000100 20 62 6f 78 20 74 68 61 74 20 77 61 73 20 73 61 | box that was sa| 00000110 76 65 64 0d 00 32 68 f4 20 41 20 69 73 20 69 6e |ved..2h. A is in| 00000120 74 65 72 6e 61 6c 20 63 6f 75 6e 74 65 72 20 61 |ternal counter a| 00000130 6e 64 20 69 6e 6b 65 79 20 61 6e 64 20 67 65 6e |nd inkey and gen| 00000140 65 72 61 6c 20 70 61 73 73 20 70 61 72 61 6d 65 |eral pass parame| 00000150 74 65 72 73 20 74 68 69 6e 67 79 2e 20 46 20 69 |ters thingy. F i| 00000160 73 20 61 6c 77 61 79 73 20 75 73 65 64 20 61 73 |s always used as| 00000170 20 74 68 65 20 66 69 6c 65 23 2e 0d 00 3c d1 f4 | the file#...<..| 00000180 20 4f 56 52 20 69 73 20 74 68 65 20 69 73 6f 6c | OVR is the isol| 00000190 61 74 65 64 20 62 69 74 20 74 61 6b 65 6e 20 66 |ated bit taken f| 000001a0 72 6f 6d 20 74 68 65 20 63 6c 69 70 62 6f 61 72 |rom the clipboar| 000001b0 64 20 66 69 6c 65 20 61 73 20 76 69 65 77 65 64 |d file as viewed| 000001c0 20 69 6e 20 74 68 65 20 6f 72 64 65 72 20 74 68 | in the order th| 000001d0 61 74 20 69 74 20 77 61 73 20 73 61 76 65 64 20 |at it was saved | 000001e0 61 6e 64 20 ac 20 74 68 65 20 6f 72 64 65 72 20 |and . the order | 000001f0 69 74 20 69 73 20 62 65 69 6e 67 20 6c 6f 61 64 |it is being load| 00000200 65 64 20 69 6e 20 69 6e 2e 46 4c 47 20 69 73 20 |ed in in.FLG is | 00000210 73 65 74 20 30 20 69 66 20 74 68 65 20 63 68 6f |set 0 if the cho| 00000220 73 65 6e 20 62 69 74 20 28 73 65 65 20 4f 56 52 |sen bit (see OVR| 00000230 29 20 77 61 73 6e 27 74 20 73 65 74 20 61 6e 64 |) wasn't set and| 00000240 20 76 69 63 65 20 76 65 72 73 61 20 0d 00 46 7a | vice versa ..Fz| 00000250 f4 20 50 41 53 53 20 69 73 20 61 20 63 6f 75 6e |. PASS is a coun| 00000260 74 69 6e 67 20 6c 6f 6f 70 20 75 73 65 64 20 69 |ting loop used i| 00000270 6e 20 74 68 65 20 4d 4f 44 45 35 20 6d 6f 64 75 |n the MODE5 modu| 00000280 6c 65 20 61 6e 64 20 61 6c 73 6f 20 77 68 65 6e |le and also when| 00000290 20 64 72 61 77 69 6e 67 20 61 20 62 6f 78 20 28 | drawing a box (| 000002a0 68 65 6e 63 65 20 77 69 6c 6c 20 61 6c 77 61 79 |hence will alway| 000002b0 73 20 62 65 20 61 20 6d 75 74 6c 69 70 6c 65 20 |s be a mutliple | 000002c0 6f 66 20 32 29 20 0d 00 50 e8 f4 20 53 43 52 4e |of 2) ..P.. SCRN| 000002d0 20 69 73 20 75 73 65 64 20 69 6e 20 74 68 65 20 | is used in the | 000002e0 4d 4f 44 45 35 20 6d 6f 64 75 6c 65 2c 61 6e 64 |MODE5 module,and| 000002f0 20 69 73 20 69 6e 69 74 69 61 6c 6c 79 20 73 65 | is initially se| 00000300 74 20 74 6f 20 26 31 34 30 20 6c 65 73 73 20 74 |t to &140 less t| 00000310 68 61 74 20 74 68 65 20 62 6f 74 74 6f 6d 20 6f |hat the bottom o| 00000320 66 20 74 68 65 20 73 63 72 65 65 6e 20 6d 65 6d |f the screen mem| 00000330 6f 72 79 20 28 61 73 20 69 6e 20 74 68 65 20 67 |ory (as in the g| 00000340 65 6e 72 69 63 20 73 65 63 74 69 6f 6e 20 74 68 |enric section th| 00000350 61 74 20 66 6f 6c 6c 6f 77 73 20 26 31 34 30 20 |at follows &140 | 00000360 69 73 20 61 64 64 65 64 20 62 61 63 6b 20 6f 6e |is added back on| 00000370 29 20 66 6f 72 20 74 68 65 20 6d 6f 64 65 2e 4c |) for the mode.L| 00000380 4f 43 20 69 73 20 74 68 65 20 63 75 72 72 65 6e |OC is the curren| 00000390 74 20 62 79 74 65 20 69 6e 20 71 75 65 73 74 69 |t byte in questi| 000003a0 6f 6e 2c 62 65 69 6e 67 20 70 6f 6b 65 64 0d 00 |on,being poked..| 000003b0 5a ab f4 20 53 56 54 4c 58 20 69 73 20 75 73 65 |Z.. SVTLX is use| 000003c0 64 20 69 6e 20 74 68 65 20 74 77 6f 20 76 65 72 |d in the two ver| 000003d0 73 69 6f 6e 73 20 6f 66 20 74 68 65 20 6c 6f 61 |sions of the loa| 000003e0 64 69 6e 20 72 6f 75 74 69 6e 65 20 28 73 65 65 |din routine (see| 000003f0 20 4d 4f 44 45 35 20 6d 6f 64 75 6c 65 20 61 6e | MODE5 module an| 00000400 64 20 61 72 6f 75 6e 64 20 6c 69 6e 65 20 37 30 |d around line 70| 00000410 30 29 20 74 6f 20 6b 65 65 70 20 74 68 65 20 6f |0) to keep the o| 00000420 72 69 67 69 6e 61 6c 20 76 61 6c 75 65 20 73 61 |riginal value sa| 00000430 76 65 64 20 77 68 69 6c 65 20 74 68 65 20 61 63 |ved while the ac| 00000440 74 75 61 6c 20 76 61 6c 75 65 20 69 73 20 69 6e |tual value is in| 00000450 63 72 65 6d 65 6e 74 65 64 0d 00 64 78 f4 20 54 |cremented..dx. T| 00000460 4d 50 58 20 61 6e 64 20 54 4d 50 59 20 61 72 65 |MPX and TMPY are| 00000470 20 75 73 65 64 20 74 6f 20 70 72 6f 76 69 64 65 | used to provide| 00000480 20 63 6f 6d 70 61 74 69 62 69 6c 74 79 20 62 65 | compatibilty be| 00000490 74 77 65 65 6e 20 72 6f 75 74 69 6e 65 73 20 2d |tween routines -| 000004a0 20 69 65 2e 74 6f 20 70 61 73 73 20 70 61 72 61 | ie.to pass para| 000004b0 6d 65 74 65 72 73 20 61 6e 64 20 63 6f 75 6e 74 |meters and count| 000004c0 20 74 68 69 6e 67 73 20 69 6e 20 6c 6f 6f 70 73 | things in loops| 000004d0 20 0d 00 6e 9b f4 20 43 4e 53 54 59 20 61 6e 64 | ..n.. CNSTY and| 000004e0 20 43 4e 53 54 58 20 61 72 65 20 75 73 65 64 20 | CNSTX are used | 000004f0 77 68 65 6e 20 64 72 61 67 67 69 6e 67 20 6f 75 |when dragging ou| 00000500 74 20 61 20 62 6f 78 20 61 6e 64 20 65 66 66 65 |t a box and effe| 00000510 63 74 69 76 65 6c 79 20 73 65 74 20 74 68 65 20 |ctively set the | 00000520 73 74 65 70 20 6f 66 20 74 68 65 20 46 4f 52 2e |step of the FOR.| 00000530 2e 2e 4e 45 58 54 20 6c 6f 6f 70 20 74 6f 20 65 |..NEXT loop to e| 00000540 6e 61 62 6c 65 20 74 68 65 20 62 6f 78 20 74 68 |nable the box th| 00000550 65 20 62 65 20 64 72 61 67 67 65 64 20 66 72 6f |e be dragged fro| 00000560 6d 20 61 6e 79 20 63 6f 72 6e 65 72 0d 00 78 d8 |m any corner..x.| 00000570 f4 20 48 49 4e 44 58 20 61 6e 64 20 45 49 4e 44 |. HINDX and EIND| 00000580 58 20 61 72 65 20 75 73 65 64 20 66 6f 72 20 77 |X are used for w| 00000590 68 65 6e 20 74 68 65 20 61 70 70 72 6f 70 72 69 |hen the appropri| 000005a0 61 74 65 20 77 68 6f 6c 65 20 73 65 6c 65 63 74 |ate whole select| 000005b0 65 64 20 62 79 74 65 73 20 61 72 65 20 74 6f 20 |ed bytes are to | 000005c0 62 65 20 73 61 76 65 64 2e 48 6f 6d 65 20 69 6e |be saved.Home in| 000005d0 64 65 78 20 69 73 20 68 6f 77 20 6d 61 6e 79 20 |dex is how many | 000005e0 62 69 74 73 20 69 6e 20 66 72 6f 6d 20 74 68 65 |bits in from the| 000005f0 20 4d 53 42 20 6f 66 20 74 68 65 20 62 79 74 65 | MSB of the byte| 00000600 20 74 68 65 20 63 75 72 73 6f 72 20 69 73 20 61 | the cursor is a| 00000610 74 20 61 6e 64 20 45 6e 64 20 69 6e 64 65 78 20 |t and End index | 00000620 69 73 20 68 6f 77 20 6d 61 6e 79 20 62 69 74 73 |is how many bits| 00000630 20 69 6e 20 66 72 6f 6d 20 74 68 65 20 4d 53 42 | in from the MSB| 00000640 20 74 6f 6f 0d 00 82 b7 f4 20 ef 32 33 2c 30 2c | too..... .23,0,| 00000650 31 30 2c 31 32 2e 2e 2e 20 69 73 20 75 73 65 64 |10,12... is used| 00000660 20 74 6f 20 64 69 73 61 62 6c 65 20 74 68 65 20 | to disable the | 00000670 63 75 72 73 6f 72 2e 49 66 20 74 68 65 72 65 20 |cursor.If there | 00000680 61 72 65 20 61 6e 79 20 73 75 73 70 69 63 69 6f |are any suspicio| 00000690 75 73 20 2b 31 27 73 20 61 6e 79 77 68 65 72 65 |us +1's anywhere| 000006a0 20 69 74 20 69 73 20 75 73 75 61 6c 6c 79 20 62 | it is usually b| 000006b0 65 63 61 75 73 65 20 6e 61 74 75 72 61 6c 20 6e |ecause natural n| 000006c0 75 6d 62 65 72 73 20 73 74 61 72 74 20 61 6e 64 |umbers start and| 000006d0 20 31 20 62 75 74 20 74 68 65 20 63 6f 2d 6f 72 | 1 but the co-or| 000006e0 64 69 6e 61 74 65 20 73 79 73 74 65 6d 20 73 74 |dinate system st| 000006f0 61 72 74 73 20 61 74 20 30 2c 30 0d 00 8c 11 f4 |arts at 0,0.....| 00000700 20 46 69 6c 65 6e 61 6d 65 73 3a 20 0d 00 96 dc | Filenames: ....| 00000710 f4 20 45 44 49 54 20 69 73 20 74 68 65 20 73 74 |. EDIT is the st| 00000720 61 72 74 75 70 20 61 6e 64 20 6c 6f 61 64 20 69 |artup and load i| 00000730 6e 20 70 61 72 74 20 3b 20 45 44 49 54 54 4d 50 |n part ; EDITTMP| 00000740 20 69 73 20 75 73 65 64 20 69 6e 74 65 72 6e 61 | is used interna| 00000750 6c 6c 79 20 61 73 20 61 20 74 65 6d 70 6f 72 61 |lly as a tempora| 00000760 72 79 20 66 69 6c 65 20 77 68 65 6e 20 74 68 65 |ry file when the| 00000770 20 6d 6f 76 65 20 6f 70 74 69 6f 6e 20 69 73 20 | move option is | 00000780 63 68 6f 73 65 6e 20 61 6e 64 20 77 69 6c 6c 20 |chosen and will | 00000790 62 65 20 64 65 6c 65 74 65 64 20 3b 20 45 44 49 |be deleted ; EDI| 000007a0 54 43 52 45 20 74 68 65 20 63 6f 72 65 20 70 72 |TCRE the core pr| 000007b0 6f 67 72 61 6d 20 77 68 69 63 68 20 69 73 20 77 |ogram which is w| 000007c0 68 65 72 65 20 61 6c 6d 6f 73 74 20 61 6c 6c 20 |here almost all | 000007d0 65 78 65 63 75 74 69 6f 6e 20 74 69 6d 65 20 69 |execution time i| 000007e0 73 20 73 70 65 6e 74 20 0d 00 a0 81 f4 20 45 44 |s spent ..... ED| 000007f0 49 54 45 4e 4c 20 63 6f 6e 74 61 69 6e 73 20 74 |ITENL contains t| 00000800 68 65 20 70 69 78 65 6c 20 62 79 20 70 69 78 65 |he pixel by pixe| 00000810 6c 20 65 64 69 74 6f 72 20 3b 20 45 44 49 54 43 |l editor ; EDITC| 00000820 4c 50 20 69 73 20 74 68 65 20 63 6c 69 70 62 6f |LP is the clipbo| 00000830 61 72 64 20 66 69 6c 65 20 69 6e 20 74 68 65 20 |ard file in the | 00000840 66 6f 72 6d 61 74 20 28 73 74 72 74 78 2c 73 74 |format (strtx,st| 00000850 72 74 79 29 28 64 6f 74 78 2c 64 6f 74 79 29 28 |rty)(dotx,doty)(| 00000860 62 79 74 65 73 2e 2e 2e 20 0d 00 aa 82 f4 20 54 |bytes... ..... T| 00000870 6f 20 61 76 6f 69 64 20 74 68 65 20 63 61 6e 27 |o avoid the can'| 00000880 74 20 65 78 74 65 6e 64 20 65 72 72 6f 72 20 65 |t extend error e| 00000890 6e 73 75 72 65 20 74 68 65 20 64 69 73 6b 20 69 |nsure the disk i| 000008a0 73 20 2a 63 6f 6d 70 61 63 74 65 64 2e 4e 6f 20 |s *compacted.No | 000008b0 69 74 20 77 6f 6e 27 74 20 72 75 6e 20 61 63 63 |it won't run acc| 000008c0 72 6f 73 73 20 74 68 65 20 74 75 62 65 20 61 73 |ross the tube as| 000008d0 20 69 74 20 70 6f 6b 65 73 20 6d 65 6d 6f 72 79 | it pokes memory| 000008e0 20 61 64 64 72 65 73 73 65 73 20 0d 00 b4 0d f4 | addresses .....| 000008f0 20 45 72 72 6f 72 73 3a 0d 00 be f6 f4 20 77 69 | Errors:..... wi| 00000900 74 68 69 6e 20 74 68 65 20 63 6f 72 65 20 70 72 |thin the core pr| 00000910 6f 67 72 61 6d 20 6f 6e 6c 79 20 3b 20 27 53 49 |ogram only ; 'SI| 00000920 5a 45 3f 27 20 6d 65 61 6e 73 20 74 68 61 74 20 |ZE?' means that | 00000930 74 68 65 20 73 65 6c 65 63 74 65 64 20 61 72 65 |the selected are| 00000940 61 20 74 6f 20 7a 6f 6f 6d 20 69 6e 20 6f 6e 20 |a to zoom in on | 00000950 77 61 73 20 67 72 65 61 74 65 72 20 74 68 61 6e |was greater than| 00000960 20 33 30 78 34 30 20 3b 20 27 57 49 44 54 48 3f | 30x40 ; 'WIDTH?| 00000970 27 20 61 6e 64 20 27 44 45 50 54 48 3f 27 20 6d |' and 'DEPTH?' m| 00000980 65 61 6e 73 20 74 68 61 74 20 74 68 65 20 73 65 |eans that the se| 00000990 6c 65 63 74 65 64 20 61 72 65 61 20 64 69 64 6e |lected area didn| 000009a0 27 74 20 65 6e 63 6c 6f 73 65 20 61 6e 79 20 70 |'t enclose any p| 000009b0 69 78 65 6c 73 20 3b 20 27 43 41 4e 4e 4f 54 27 |ixels ; 'CANNOT'| 000009c0 20 69 73 20 67 69 76 65 6e 20 62 79 20 74 68 65 | is given by the| 000009d0 20 70 61 73 74 65 20 63 6f 6d 6d 61 6e 64 20 69 | paste command i| 000009e0 66 20 74 68 65 72 65 20 69 73 20 6e 6f 20 0d 00 |f there is no ..| 000009f0 c8 21 f4 20 63 6c 69 70 62 6f 61 72 64 20 66 69 |.!. clipboard fi| 00000a00 6c 65 20 6f 6e 20 74 68 65 20 64 69 73 6b 20 0d |le on the disk .| 00000a10 00 d2 14 f4 20 42 6c 6f 77 20 62 79 20 62 6c 6f |.... Blow by blo| 00000a20 77 3a 20 0d 00 dc 0e f4 20 45 44 49 54 3e 3e 3e |w: ..... EDIT>>>| 00000a30 20 0d 00 e6 ee f4 20 46 58 33 2c 34 20 72 65 73 | ..... FX3,4 res| 00000a40 74 6f 72 65 73 20 6f 75 74 70 75 74 20 74 6f 20 |tores output to | 00000a50 74 68 65 20 73 63 72 65 65 6e 20 77 68 65 6e 20 |the screen when | 00000a60 72 65 2d 65 6e 74 65 72 69 6e 67 20 66 72 6f 6e |re-entering fron| 00000a70 20 27 65 64 69 74 65 6e 6c 27 20 61 73 20 69 74 | 'editenl' as it| 00000a80 20 69 73 20 74 75 72 6e 65 64 20 6f 66 66 20 69 | is turned off i| 00000a90 6e 20 74 68 61 74 20 70 72 6f 67 72 61 6d 20 74 |n that program t| 00000aa0 6f 20 6a 61 62 20 6b 65 79 73 20 69 6e 74 6f 20 |o jab keys into | 00000ab0 74 68 65 20 6b 65 79 62 6f 61 72 64 20 62 75 66 |the keyboard buf| 00000ac0 66 65 72 20 3b 20 46 58 34 2c 31 20 6d 61 6b 65 |fer ; FX4,1 make| 00000ad0 73 20 74 68 65 20 63 75 72 73 6f 72 73 20 41 53 |s the cursors AS| 00000ae0 43 69 69 20 3b 20 48 49 4d 45 4d 20 69 73 20 64 |Cii ; HIMEM is d| 00000af0 72 6f 70 70 65 64 20 61 73 20 74 68 65 20 6d 65 |ropped as the me| 00000b00 73 73 61 67 65 20 61 72 65 61 20 69 73 20 73 74 |ssage area is st| 00000b10 6f 72 65 64 20 68 65 72 65 20 6c 61 74 65 72 0d |ored here later.| 00000b20 00 f0 74 f4 20 46 58 31 32 2c 38 20 73 6c 6f 77 |..t. FX12,8 slow| 00000b30 73 20 74 68 65 20 6b 65 79 62 6f 61 72 64 20 72 |s the keyboard r| 00000b40 65 70 65 61 74 20 74 6f 20 70 72 65 76 65 6e 74 |epeat to prevent| 00000b50 20 64 65 6c 61 79 73 20 77 68 69 6c 65 20 74 68 | delays while th| 00000b60 65 20 70 69 78 65 6c 2d 70 6f 69 6e 74 65 72 20 |e pixel-pointer | 00000b70 63 61 74 63 68 65 73 20 75 70 20 77 69 74 68 20 |catches up with | 00000b80 74 68 65 20 6b 65 79 62 6f 61 72 64 20 62 75 66 |the keyboard buf| 00000b90 66 65 72 0d 00 fa 11 f4 20 45 44 49 54 43 52 45 |fer..... EDITCRE| 00000ba0 3e 3e 3e 20 0d 01 04 82 f4 20 49 73 20 6d 61 64 |>>> ..... Is mad| 00000bb0 65 20 75 70 20 6f 66 20 6d 61 6e 79 20 67 6f 73 |e up of many gos| 00000bc0 75 62 73 20 65 61 63 68 20 6f 66 20 77 68 69 63 |ubs each of whic| 00000bd0 68 20 61 72 65 20 75 73 65 64 20 62 79 20 74 68 |h are used by th| 00000be0 65 20 63 6f 6d 6d 61 6e 64 20 74 61 62 6c 65 20 |e command table | 00000bf0 72 69 67 68 74 20 61 74 20 74 68 65 20 62 65 67 |right at the beg| 00000c00 69 6e 6e 69 6e 67 2e 49 6e 20 6f 72 64 65 72 20 |inning.In order | 00000c10 6f 66 20 61 70 70 65 61 72 61 6e 63 65 20 74 68 |of appearance th| 00000c20 65 79 20 61 72 65 0d 01 0e 7e f4 20 4b 65 79 70 |ey are...~. Keyp| 00000c30 72 65 73 73 65 73 20 61 72 65 20 64 65 74 65 63 |resses are detec| 00000c40 74 65 64 20 61 6e 64 20 69 66 20 63 75 72 73 6f |ted and if curso| 00000c50 72 20 6b 65 79 73 20 74 68 65 6e 20 74 68 65 20 |r keys then the | 00000c60 70 69 78 65 6c 2d 70 6f 69 6e 74 65 72 20 69 73 |pixel-pointer is| 00000c70 20 6d 6f 76 65 20 65 6c 73 65 20 63 68 65 63 6b | move else check| 00000c80 20 69 73 20 69 74 20 69 73 20 6f 6e 65 20 6f 66 | is it is one of| 00000c90 20 74 68 65 20 72 65 73 65 72 76 65 64 20 77 6f | the reserved wo| 00000ca0 72 64 73 20 0d 01 18 a8 f4 20 53 61 76 65 20 77 |rds ..... Save w| 00000cb0 68 61 74 20 77 61 73 20 69 6e 20 74 68 65 20 6d |hat was in the m| 00000cc0 65 73 73 61 67 65 20 61 72 65 61 20 28 65 69 67 |essage area (eig| 00000cd0 68 74 20 6c 65 74 74 65 72 73 20 65 61 63 68 20 |ht letters each | 00000ce0 74 61 6b 69 6e 67 20 38 20 62 79 74 65 73 29 20 |taking 8 bytes) | 00000cf0 6a 75 73 74 20 62 65 6c 6f 77 20 73 63 72 65 65 |just below scree| 00000d00 6e 20 6d 65 6d 6f 72 79 20 74 68 65 6e 20 70 72 |n memory then pr| 00000d10 69 6e 74 20 74 68 65 20 6d 65 73 73 61 67 65 20 |int the message | 00000d20 75 73 69 6e 67 20 4d 4f 56 45 20 61 6e 64 20 56 |using MOVE and V| 00000d30 44 55 35 20 74 68 65 6e 20 72 65 73 74 6f 72 65 |DU5 then restore| 00000d40 20 74 68 6f 73 65 20 62 79 74 65 73 0d 01 22 f8 | those bytes..".| 00000d50 f4 20 48 69 67 68 6c 69 67 68 74 20 74 68 65 20 |. Highlight the | 00000d60 63 75 72 73 6f 72 20 77 69 74 68 20 61 20 32 78 |cursor with a 2x| 00000d70 32 20 62 6f 78 20 62 79 20 73 74 61 72 74 69 6e |2 box by startin| 00000d80 67 20 28 78 2d 32 2c 79 2d 32 29 20 66 72 6f 6d |g (x-2,y-2) from| 00000d90 20 74 68 65 20 63 75 72 72 65 6e 74 20 63 75 72 | the current cur| 00000da0 73 6f 72 20 70 6f 73 69 74 69 6f 6e 20 74 68 65 |sor position the| 00000db0 20 69 6e 63 72 65 61 73 69 6e 67 20 74 68 65 20 | increasing the | 00000dc0 63 6f 2d 6f 72 64 69 6e 61 74 65 73 2e 49 66 20 |co-ordinates.If | 00000dd0 74 68 65 20 70 6f 69 6e 74 20 69 73 20 6f 66 66 |the point is off| 00000de0 20 74 68 65 20 73 63 72 65 65 6e 20 74 68 65 6e | the screen then| 00000df0 20 6e 6f 74 68 69 6e 67 20 69 73 20 70 6c 6f 74 | nothing is plot| 00000e00 74 65 64 20 74 6f 20 61 76 6f 69 64 20 68 61 6c |ted to avoid hal| 00000e10 66 20 74 68 65 20 62 6f 78 20 61 70 70 65 61 72 |f the box appear| 00000e20 69 6e 67 20 6f 6e 20 74 68 65 20 6f 74 68 65 72 |ing on the other| 00000e30 20 73 69 64 65 20 6f 66 20 74 68 65 20 73 63 72 | side of the scr| 00000e40 65 65 6e 20 0d 01 2c 8f f4 20 6d 61 73 73 20 63 |een ..,.. mass c| 00000e50 61 6c 63 75 6c 61 74 69 6f 6e 20 74 6f 20 6c 6f |alculation to lo| 00000e60 63 61 74 65 20 61 6e 79 20 70 69 78 65 6c 20 6f |cate any pixel o| 00000e70 6e 20 74 68 65 20 73 63 72 65 65 6e 20 75 73 69 |n the screen usi| 00000e80 6e 67 20 74 72 75 65 20 28 78 2c 79 29 20 63 6f |ng true (x,y) co| 00000e90 2d 6f 72 64 69 6e 61 74 65 73 20 6d 65 61 73 75 |-ordinates measu| 00000ea0 72 65 64 20 66 72 6f 6d 20 74 6f 70 20 6c 65 66 |red from top lef| 00000eb0 74 20 28 30 2c 30 29 20 74 6f 20 62 6f 74 74 6f |t (0,0) to botto| 00000ec0 6d 20 72 69 67 68 74 20 28 36 33 39 2c 32 35 35 |m right (639,255| 00000ed0 29 20 20 0d 01 36 f5 f4 20 45 78 70 61 6e 64 20 |) ..6.. Expand | 00000ee0 61 20 62 6f 78 20 62 79 20 73 65 65 69 6e 67 20 |a box by seeing | 00000ef0 77 68 69 63 68 20 6f 66 20 74 68 65 20 63 75 72 |which of the cur| 00000f00 73 6f 72 73 20 77 61 73 20 70 72 65 73 73 65 64 |sors was pressed| 00000f10 20 61 6e 64 20 61 64 64 69 6e 67 20 6f 72 20 73 | and adding or s| 00000f20 75 62 74 72 61 63 74 69 6e 67 20 66 72 6f 6d 20 |ubtracting from | 00000f30 44 4f 54 6e 2e 43 4e 53 54 58 20 61 6e 64 20 43 |DOTn.CNSTX and C| 00000f40 4e 53 54 59 20 61 6c 6c 6f 77 20 74 68 65 20 62 |NSTY allow the b| 00000f50 6f 78 20 74 6f 20 62 65 20 64 72 61 67 67 65 64 |ox to be dragged| 00000f60 20 73 74 61 72 74 69 6e 67 20 61 74 20 61 6e 79 | starting at any| 00000f70 20 63 6f 72 6e 65 72 2c 61 6c 74 68 6f 75 67 68 | corner,although| 00000f80 20 6f 6e 20 70 72 65 73 73 69 6e 67 20 63 68 72 | on pressing chr| 00000f90 73 28 31 33 35 29 20 74 68 65 79 20 61 72 65 20 |s(135) they are | 00000fa0 73 6f 72 74 65 64 20 69 6e 74 6f 20 73 69 7a 65 |sorted into size| 00000fb0 20 6f 72 64 65 72 20 73 6f 20 74 68 61 74 20 53 | order so that S| 00000fc0 54 52 54 6e 20 69 73 20 0d 01 40 6f f4 20 74 6f |TRTn is ..@o. to| 00000fd0 70 20 6c 65 66 74 20 61 6e 64 20 44 4f 54 6e 20 |p left and DOTn | 00000fe0 69 73 20 62 6f 74 74 6f 6d 20 72 69 67 68 74 2e |is bottom right.| 00000ff0 49 66 20 74 68 65 20 62 6f 78 20 68 61 73 20 6e |If the box has n| 00001000 6f 20 64 65 70 74 68 20 6f 72 20 77 69 64 74 68 |o depth or width| 00001010 20 74 68 65 6e 20 74 68 65 20 75 73 65 72 20 77 | then the user w| 00001020 69 6c 6c 20 62 65 20 61 6c 65 72 74 65 64 20 6f |ill be alerted o| 00001030 66 20 74 68 69 73 20 0d 01 4a 6f f4 20 4d 6f 76 |f this ..Jo. Mov| 00001040 65 20 62 6f 78 20 62 79 20 61 64 64 69 6e 67 20 |e box by adding | 00001050 74 6f 20 42 4f 54 48 20 53 54 52 54 6e 20 61 6e |to BOTH STRTn an| 00001060 64 20 44 4f 54 6e 20 69 6e 73 74 65 61 64 20 6f |d DOTn instead o| 00001070 66 20 6a 75 73 74 20 44 4f 54 6e 20 61 73 20 61 |f just DOTn as a| 00001080 62 6f 76 65 2e 4f 6e 20 70 72 65 73 73 69 6e 67 |bove.On pressing| 00001090 20 63 68 72 73 28 31 33 35 29 20 69 74 20 72 65 | chrs(135) it re| 000010a0 74 75 72 6e 73 20 0d 01 54 6d f4 20 53 61 76 65 |turns ..Tm. Save| 000010b0 20 62 6f 78 65 64 20 61 72 65 61 20 74 6f 20 6e | boxed area to n| 000010c0 65 61 72 65 73 74 20 77 68 6f 6c 65 20 62 79 74 |earest whole byt| 000010d0 65 20 28 74 68 65 20 69 6e 64 69 76 69 64 75 61 |e (the individua| 000010e0 6c 20 62 69 74 73 20 72 65 71 75 69 72 65 64 20 |l bits required | 000010f0 66 72 6f 6d 20 65 61 63 68 20 65 6e 64 20 69 73 |from each end is| 00001100 20 63 61 6c 63 75 6c 61 74 65 64 20 6c 61 74 65 | calculated late| 00001110 72 29 20 0d 01 5e e8 f4 20 4c 6f 61 64 69 6e 20 |r) ..^.. Loadin | 00001120 62 79 20 67 65 74 74 69 6e 67 20 61 20 62 79 74 |by getting a byt| 00001130 65 20 66 72 6f 6d 20 74 68 65 20 66 69 6c 65 2c |e from the file,| 00001140 41 4e 44 69 6e 67 20 69 74 20 77 69 74 68 20 61 |ANDing it with a| 00001150 20 6d 61 73 6b 2c 61 6e 64 20 74 68 65 6e 20 63 | mask,and then c| 00001160 68 65 63 6b 69 6e 67 20 77 68 65 74 68 65 72 20 |hecking whether | 00001170 74 68 65 20 63 68 6f 73 65 6e 20 62 69 74 20 69 |the chosen bit i| 00001180 73 20 73 65 74 2e 54 68 65 6e 20 67 65 74 20 62 |s set.Then get b| 00001190 79 74 65 20 66 72 6f 6d 20 73 63 72 65 65 6e 20 |yte from screen | 000011a0 6d 65 6d 6f 72 79 2c 41 4e 44 20 69 74 20 77 69 |memory,AND it wi| 000011b0 74 68 20 61 20 6e 65 67 61 74 69 76 65 20 6d 61 |th a negative ma| 000011c0 73 6b 20 74 6f 20 65 6e 73 75 72 65 20 74 68 65 |sk to ensure the| 000011d0 20 73 65 6c 65 63 74 65 64 20 62 69 74 20 69 73 | selected bit is| 000011e0 20 73 65 74 20 30 2e 4f 72 20 74 68 65 20 74 77 | set 0.Or the tw| 000011f0 6f 20 74 6f 67 65 74 68 65 72 20 0d 01 68 e9 f4 |o together ..h..| 00001200 20 43 6c 65 61 72 20 74 68 65 20 61 72 65 61 20 | Clear the area | 00001210 74 65 6d 70 6f 72 61 72 69 6c 79 20 72 65 6e 61 |temporarily rena| 00001220 6d 65 73 20 74 68 65 20 63 6c 69 70 62 6f 61 72 |mes the clipboar| 00001230 64 20 66 69 6c 65 2c 74 68 65 6e 20 63 72 65 61 |d file,then crea| 00001240 74 65 73 20 69 74 73 20 6f 77 6e 20 62 79 20 73 |tes its own by s| 00001250 61 76 69 6e 67 20 61 20 6c 6f 61 64 20 6f 66 20 |aving a load of | 00001260 56 41 4c 28 4d 24 29 2c 75 73 69 6e 67 20 4d 24 |VAL(M$),using M$| 00001270 20 74 6f 20 73 61 76 65 20 76 61 72 69 61 62 6c | to save variabl| 00001280 65 20 6e 61 6d 65 73 2e 4c 6f 61 64 20 69 6e 20 |e names.Load in | 00001290 74 68 61 74 20 66 69 6c 65 2c 61 6e 64 20 72 65 |that file,and re| 000012a0 73 74 6f 72 65 20 74 68 65 20 63 6c 69 70 62 6f |store the clipbo| 000012b0 61 72 64 2e 32 35 35 3d 77 68 69 74 65 3b 30 3d |ard.255=white;0=| 000012c0 62 6c 61 63 6b 2c 31 37 30 3d 28 31 30 31 30 31 |black,170=(10101| 000012d0 30 31 30 29 20 74 68 65 72 65 66 6f 72 65 20 67 |010) therefore g| 000012e0 72 65 79 20 0d 01 72 5f f4 20 53 65 6c 65 63 74 |rey ..r_. Select| 000012f0 20 62 6c 61 63 6b 2c 67 72 65 79 2c 6f 72 20 77 | black,grey,or w| 00001300 68 69 74 65 2e 4e 6f 20 64 65 66 61 75 6c 74 2c |hite.No default,| 00001310 69 66 20 74 68 65 20 71 75 65 73 74 69 6f 6e 20 |if the question | 00001320 69 73 20 6e 6f 74 20 61 6e 73 77 65 72 65 64 20 |is not answered | 00001330 69 74 20 69 73 20 61 73 6b 65 64 20 61 67 61 69 |it is asked agai| 00001340 6e 2e 20 0d 01 7c 7c f4 20 47 65 74 20 63 6f 2d |n. ..||. Get co-| 00001350 6f 72 64 69 6e 61 74 65 73 20 6f 66 20 74 68 65 |ordinates of the| 00001360 20 61 72 65 61 20 6c 61 73 74 20 73 65 6c 65 63 | area last selec| 00001370 74 65 64 20 69 6e 20 74 68 65 20 63 6c 69 70 62 |ted in the clipb| 00001380 6f 61 72 64 20 66 69 6c 65 2e 49 66 20 6e 6f 74 |oard file.If not| 00001390 20 65 78 69 73 74 20 74 68 65 6e 20 70 72 69 6e | exist then prin| 000013a0 74 20 27 43 41 4e 4e 4f 54 27 20 69 6e 20 74 68 |t 'CANNOT' in th| 000013b0 65 20 6d 65 73 73 61 67 65 20 61 72 65 61 20 0d |e message area .| 000013c0 01 86 86 f4 20 4f 6e 65 20 70 61 73 73 20 76 65 |.... One pass ve| 000013d0 72 73 69 6f 6e 20 6f 66 20 74 68 65 20 64 72 61 |rsion of the dra| 000013e0 77 20 61 20 70 75 6c 73 69 6e 67 20 62 6f 78 2e |w a pulsing box.| 000013f0 54 68 69 73 20 69 73 20 6f 6e 6c 79 20 75 73 65 |This is only use| 00001400 64 20 62 79 20 74 68 65 20 62 6f 78 20 64 72 61 |d by the box dra| 00001410 77 65 72 20 73 6f 20 74 68 61 74 20 74 68 65 20 |wer so that the | 00001420 62 6f 78 20 69 73 20 70 65 72 6d 61 6e 65 6e 74 |box is permanent| 00001430 6c 79 20 6c 65 66 74 20 6f 6e 20 74 68 65 20 73 |ly left on the s| 00001440 63 72 65 65 6e 0d 01 90 9a f4 20 45 6e 74 65 72 |creen..... Enter| 00001450 20 74 65 78 74 20 28 64 65 6c 65 74 65 20 61 6e | text (delete an| 00001460 64 20 63 6f 70 79 20 61 72 65 20 64 69 73 61 62 |d copy are disab| 00001470 6c 65 64 29 2e 50 72 65 73 73 69 6e 67 20 52 45 |led).Pressing RE| 00001480 54 55 52 4e 20 70 75 74 73 20 69 74 20 69 6e 20 |TURN puts it in | 00001490 63 6f 6c 75 6d 6e 73 2e 45 78 2d 6f 72 27 73 20 |columns.Ex-or's | 000014a0 69 74 20 73 6f 20 74 68 61 74 20 69 66 20 63 72 |it so that if cr| 000014b0 6f 73 73 69 6e 67 20 61 20 62 6c 61 63 6b 2f 77 |ossing a black/w| 000014c0 68 69 74 65 20 62 6f 75 6e 64 61 72 79 20 69 74 |hite boundary it| 000014d0 20 61 70 70 65 61 72 73 20 35 30 3a 35 30 20 0d | appears 50:50 .| 000014e0 01 9a 75 f4 20 50 72 6f 63 65 64 69 74 20 64 72 |..u. Procedit dr| 000014f0 61 67 73 20 61 20 62 6f 78 2c 73 61 76 65 73 20 |ags a box,saves | 00001500 74 68 65 20 61 72 65 61 2c 73 61 76 65 73 20 74 |the area,saves t| 00001510 68 65 20 65 6e 74 69 72 65 20 73 63 72 65 65 6e |he entire screen| 00001520 20 74 6f 20 24 2e 4f 55 54 50 55 54 2c 74 68 65 | to $.OUTPUT,the| 00001530 6e 20 63 68 61 69 6e 73 20 74 68 65 20 6d 6f 64 |n chains the mod| 00001540 65 35 20 65 78 74 65 6e 74 69 6f 6e 20 6d 6f 64 |e5 extention mod| 00001550 75 6c 65 20 0d 01 a4 11 f4 20 45 44 49 54 45 4e |ule ..... EDITEN| 00001560 4c 3e 3e 3e 20 0d 01 ae 8a f4 20 4f 70 65 6e 69 |L>>> ..... Openi| 00001570 6e 20 74 68 65 20 66 69 6c 65 2c 74 6f 20 67 65 |n the file,to ge| 00001580 74 20 63 6f 2d 6f 72 64 69 6e 61 74 65 73 2c 72 |t co-ordinates,r| 00001590 65 6d 6f 76 65 20 74 68 65 20 63 75 72 73 6f 72 |emove the cursor| 000015a0 20 77 69 74 68 20 56 44 55 32 33 2c 64 65 66 69 | with VDU23,defi| 000015b0 6e 65 20 76 61 72 69 61 62 6c 65 73 20 61 6e 64 |ne variables and| 000015c0 20 74 68 6f 73 65 20 77 69 74 68 20 49 20 77 61 | those with I wa| 000015d0 6e 74 20 74 6f 20 73 61 76 65 20 75 6e 61 6c 74 |nt to save unalt| 000015e0 65 72 65 64 20 66 6f 72 20 6c 61 74 65 72 20 0d |ered for later .| 000015f0 01 b8 8d f4 20 41 73 20 77 69 74 68 20 6c 6f 61 |.... As with loa| 00001600 64 69 6e 20 61 62 6f 76 65 2c 65 78 63 65 70 74 |din above,except| 00001610 20 74 68 61 74 20 69 73 20 66 6c 61 67 20 69 73 | that is flag is| 00001620 20 73 65 74 20 74 68 65 6e 20 61 20 77 68 6f 6c | set then a whol| 00001630 65 20 73 71 75 61 72 65 20 69 73 20 63 6f 6c 6f |e square is colo| 00001640 75 72 65 64 20 69 6e 20 77 69 74 68 20 61 20 66 |ured in with a f| 00001650 6f 72 2e 2e 2e 6e 65 78 74 20 70 6f 6b 69 6e 67 |or...next poking| 00001660 20 32 35 35 20 69 6e 74 6f 20 74 68 65 20 73 63 | 255 into the sc| 00001670 72 65 65 6e 20 6d 65 6d 6f 72 79 20 0d 01 c2 61 |reen memory ...a| 00001680 f4 20 50 72 69 6e 74 20 63 75 72 72 65 6e 74 20 |. Print current | 00001690 70 69 78 65 6c 20 70 6f 73 69 74 69 6f 6e 2c 77 |pixel position,w| 000016a0 68 69 63 68 20 63 61 6e 20 62 65 20 69 6e 63 72 |hich can be incr| 000016b0 65 61 73 65 64 20 75 70 20 74 6f 20 74 68 65 20 |eased up to the | 000016c0 6c 69 6d 69 74 20 6f 66 20 74 68 65 20 73 63 72 |limit of the scr| 000016d0 65 65 6e 20 28 32 39 2c 33 39 29 2e 20 0d 01 cc |een (29,39). ...| 000016e0 72 f4 20 49 66 20 74 61 62 20 70 72 65 73 73 65 |r. If tab presse| 000016f0 64 20 74 68 65 6e 20 65 78 2d 6f 72 20 77 68 61 |d then ex-or wha| 00001700 74 65 76 65 72 20 77 61 73 20 74 68 65 72 65 20 |tever was there | 00001710 77 69 74 68 20 32 35 35 20 62 75 74 20 69 66 20 |with 255 but if | 00001720 70 72 65 73 73 65 64 20 63 68 72 73 28 31 33 35 |pressed chrs(135| 00001730 29 20 74 68 65 6e 20 73 74 6f 70 20 74 68 65 20 |) then stop the | 00001740 65 64 69 74 6f 72 20 61 6e 64 20 73 61 76 65 0d |editor and save.| 00001750 01 d6 de f4 20 52 65 76 65 72 73 65 20 6f 66 20 |.... Reverse of | 00001760 6c 6f 61 64 69 6e 20 65 78 63 65 70 74 20 74 68 |loadin except th| 00001770 61 74 20 69 66 20 54 4c 58 7e 38 20 69 73 6e 27 |at if TLX~8 isn'| 00001780 74 20 7a 65 72 6f 20 74 68 65 6e 20 73 6f 6d 65 |t zero then some| 00001790 20 62 6c 61 6e 6b 20 62 69 74 73 20 6d 75 73 74 | blank bits must| 000017a0 20 62 65 20 73 61 76 65 64 20 69 6e 20 74 68 65 | be saved in the| 000017b0 20 62 79 74 65 20 62 65 66 6f 72 65 20 74 68 65 | byte before the| 000017c0 20 27 70 69 78 65 6c 73 27 20 28 73 71 75 61 72 | 'pixels' (squar| 000017d0 65 73 20 6f 6e 20 74 68 65 20 73 63 72 65 65 6e |es on the screen| 000017e0 29 20 63 61 6e 20 62 65 20 65 76 61 6c 75 61 74 |) can be evaluat| 000017f0 65 64 20 6f 74 68 65 72 77 69 73 65 20 74 68 65 |ed otherwise the| 00001800 20 66 69 6c 65 20 77 6f 75 6c 64 20 62 65 20 28 | file would be (| 00001810 28 48 49 4e 44 58 2b 28 38 2d 45 49 4e 44 58 29 |(HINDX+(8-EINDX)| 00001820 29 2a 59 20 74 6f 6f 20 73 68 6f 72 74 0d 01 e0 |)*Y too short...| 00001830 e1 f4 20 50 72 69 6e 74 20 27 72 65 6c 6f 61 64 |.. Print 'reload| 00001840 69 6e 67 27 20 74 68 65 6e 20 65 6d 75 6c 61 74 |ing' then emulat| 00001850 65 20 77 68 61 74 20 27 24 2e 45 44 49 54 27 20 |e what '$.EDIT' | 00001860 64 6f 65 73 20 28 6c 6f 61 64 73 20 69 6e 20 74 |does (loads in t| 00001870 68 65 20 73 63 72 65 65 6e 2c 74 75 72 6e 20 6f |he screen,turn o| 00001880 6e 20 74 68 65 20 66 69 72 73 74 20 70 69 78 65 |n the first pixe| 00001890 6c 20 61 74 20 54 4c 48 43 29 20 74 68 65 6e 20 |l at TLHC) then | 000018a0 69 6e 73 65 72 74 20 27 50 27 20 69 6e 74 6f 20 |insert 'P' into | 000018b0 74 68 65 20 6b 65 79 62 20 62 75 66 66 65 72 20 |the keyb buffer | 000018c0 61 6e 64 20 72 75 6e 20 27 24 2e 45 44 49 54 43 |and run '$.EDITC| 000018d0 52 45 27 20 77 68 69 63 68 20 74 68 65 6e 20 6a |RE' which then j| 000018e0 75 6d 70 73 20 74 6f 20 27 70 61 73 74 65 27 20 |umps to 'paste' | 000018f0 6d 6f 64 65 20 74 6f 20 69 6e 73 65 72 74 20 74 |mode to insert t| 00001900 68 65 20 6e 65 77 20 76 65 72 73 69 6f 6e 0d 01 |he new version..| 00001910 ea 18 f4 20 52 2e 53 70 72 6f 77 73 6f 6e 20 33 |... R.Sprowson 3| 00001920 2f 39 2f 39 35 20 0d ff |/9/95 ..| 00001928