Home » Personal collection » Acorn hard disk » misc » misc3 » eug_titles/PT3/+P1
eug_titles/PT3/+P1
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 hard disk » misc » misc3 |
Filename: | eug_titles/PT3/+P1 |
Read OK: | ✔ |
File size: | 1B5F bytes |
Load address: | 0000 |
Exec address: | 0000 |
Duplicates
There is 1 duplicate copy of this file in the archive:
- Personal collection » Acorn ADFS disks » Electron » EUG_submission.ADF » PT3/+P1
- Personal collection » Acorn hard disk » misc » misc3 » eug_titles/PT3/+P1
File contents
Programming Technique Part 3: Graphics - Screen Memory Written by Dominic Ford At the end of the last article, you could program graphics in colour using the built in MOVE and DRAW commands in BASIC, and could program fast, detailed graphics in black and white using user defined characters. But there was a problem if we wanted graphics in both colour and detail, as by both methods the production of such graphics would be incredibly slow. There is a solution to this problem, which involves taking advantage of the way in which the computer's video system operates. The colour of each pixel on your monitor is determined the data sent to the monitor by your computer - thats fairly obvious. But if you have drawn a very complex set of shapes on the computer screen, perhaps using a BASIC program which took several hours to calculate and draw the result you see on the screen, how does the computer remember the colour of every pixel on the screen, and know what data to send to your monitor? The answer is simple: within your computer's memory there is an area set aside to store the colour of every pixel on the screen, and when the monitor requests the colour of a particular pixel, the computer simply reads the colour of the pixel from this area of memory. This area of memory is called "Screen Memory". It can be considered as a sort of giant table, holding data for the colours of all of the pixels in a huge matrix of memory locations. But of what use is this to the programmer you might be wondering. The answer is that when you use user defined characters, MOVE and DRAW commands, or any other method of putting anything on the screen, the computer simply alters a few values in this giant table. But the computer takes time to process your MOVE and DRAW commands to work out which values in the table to alter. If you could bypass this stage, and set the values in this giant table yourself without using the computer's general purpose graphics commands, you can get exactly the result that you want, and much faster than you would achieve if you were doing the operation through the computer's commands. These have to process the parameters which you give, and then calculate where abouts in the giant table you want to alter, before they can actually do any useful work. Thus a lot of computer time is wasted in performing calculations, which can actually be skipped if the programmer is careful. There are two possible ways of achieving this idea, both of which are useful in different situations: 1. Save screen memory to disc. This idea is fairly simple to understand. You, as the programmer, write a program to plot the artwork for your program onto the screen, taking however many hours it may take to complete all of the calculations required to plot the graphics. You run this program once on your computer, so that your masterpiece is stored in the screen memory of your computer (ie. is on the monitor of your computer). You than transfer the entire contents of the screen memory on your computer to floppy disc. Then, in the final program which you want the user to operate, you include a command to load this data back from floppy disc into the screen memory of their computer. In a matter of a couple of seconds, graphics which took possible hours to calculate will appear on their screen. This is a technique which I have used in several of my programs. The main menu of Shipwrecked II: Jupiter 3, where you select Play, Instructions, Game Complete or Cheat with the starfield backdrop was done in this way - the screen took nearly an hour for my computer to calculate, but I was able to make it appear in seconds on your screen. I should also mention the title screen to Shipwreck with the animated sea, not to mention the endless EUG title screens I have done in this way - the Christmas EUG 35 screen with the swirly blue background (credited erroneously to Robert Sprowson) took two whole days to plot! In order to achieve this, you simply need to understand two BASIC commands: *SAVE Filename nnnn mmmm *LOAD Filename nnnn These load and save areas of the computer's memory to floppy disc or cassette with the filename givan in place of the work Filename, starting at memory location nnnn, and continuing until memory location mmmm (where nnnn and mmmm are both in hexidecimal - base 16). Don't worry if you don't entirely understand this - it is not necessary to entirely understand the workings of these commands, or of hexidecimal to use them to store and retrieve screen memory. All you need to do is substitute nnnn and mmmm for the addresses of the start and finish of screen memory. The location of these within your computer varies depeding upon which graphics mode you are using (which you selected using the MODE command - see previous tutorial if you are unsure of what this is), but is always constant for any particular mode. the values for the different modes are given below: Mode nnnn mmmm NOTES: 0 3000 7FFF 1 3000 7FFF - nnnn and mmmm values given to the left are 2 3000 7FFF all in hexidecimal. Therefore they can be 3 4000 7FFF substituted directly into the *LOAD and *SAVE 4 5800 7FFF commands with no conversion required. 5 5800 7FFF 6 6000 7FFF - Values are not valid for the BBC model A in 7 7C00 7FFF modes 4,5,6 or 7. Examples: Suppose you are in mode 2, and want to store the screen to a floppy. From the table above, nnnn is 3000 and mmmm is 7FFF for mode 2. Therefore, to save the screen under the filename "Screen", you would type: *SAVE Screen 3000 7FFF Now, if you want to restore the screen again, and put your graphics back on the screen again, you would use *LOAD. Notice that this time only a value for nnnn is required, and not for mmmm: *LOAD Screen 3000 You can try this out now, if you switch on your Electron, and insert a work disc into your floppy drive. If you use ADFS, you may need to use *MOUNT to select the floppy disc, and be able to write to it. Now enter mode 2 by typing: MODE 2 Now type some text on the screen which will represent the graphics which you want to save. When you have finished, save the contents of screen memory to floppy disk as shown above, by typing: *SAVE Screen 3000 7FFF When the disk drive has finished, clear the text off the screen by typing: CLS The text which you typed onto the screen has now been wiped from the computer's memory, but should still be stored on the floppy disc. We can show that this is so by typing: *LOAD Screen 3000 Your text should now reappear on the screen. You can repeat this with any kind of complex graphics on screen, and it will still work. The same can be done in any other graphics mode, simply by changing the values of nnnn and mmmm to those given in the table above. For example in mode 5 you would use: *SAVE Screen 5800 7FFF followed by: *LOAD Screen 5800 7FFF
00000000 50 72 6f 67 72 61 6d 6d 69 6e 67 20 54 65 63 68 |Programming Tech| 00000010 6e 69 71 75 65 0d 50 61 72 74 20 33 3a 20 47 72 |nique.Part 3: Gr| 00000020 61 70 68 69 63 73 20 2d 20 53 63 72 65 65 6e 20 |aphics - Screen | 00000030 4d 65 6d 6f 72 79 0d 0d 57 72 69 74 74 65 6e 20 |Memory..Written | 00000040 62 79 20 44 6f 6d 69 6e 69 63 20 46 6f 72 64 0d |by Dominic Ford.| 00000050 0d 41 74 20 74 68 65 20 65 6e 64 20 6f 66 20 74 |.At the end of t| 00000060 68 65 20 6c 61 73 74 20 61 72 74 69 63 6c 65 2c |he last article,| 00000070 20 79 6f 75 20 63 6f 75 6c 64 20 70 72 6f 67 72 | you could progr| 00000080 61 6d 20 67 72 61 70 68 69 63 73 20 69 6e 20 63 |am graphics in c| 00000090 6f 6c 6f 75 72 20 75 73 69 6e 67 0d 74 68 65 20 |olour using.the | 000000a0 62 75 69 6c 74 20 69 6e 20 4d 4f 56 45 20 61 6e |built in MOVE an| 000000b0 64 20 44 52 41 57 20 63 6f 6d 6d 61 6e 64 73 20 |d DRAW commands | 000000c0 69 6e 20 42 41 53 49 43 2c 20 61 6e 64 20 63 6f |in BASIC, and co| 000000d0 75 6c 64 20 70 72 6f 67 72 61 6d 20 66 61 73 74 |uld program fast| 000000e0 2c 0d 64 65 74 61 69 6c 65 64 20 67 72 61 70 68 |,.detailed graph| 000000f0 69 63 73 20 69 6e 20 62 6c 61 63 6b 20 61 6e 64 |ics in black and| 00000100 20 77 68 69 74 65 20 75 73 69 6e 67 20 75 73 65 | white using use| 00000110 72 20 64 65 66 69 6e 65 64 20 63 68 61 72 61 63 |r defined charac| 00000120 74 65 72 73 2e 20 42 75 74 0d 74 68 65 72 65 20 |ters. But.there | 00000130 77 61 73 20 61 20 70 72 6f 62 6c 65 6d 20 69 66 |was a problem if| 00000140 20 77 65 20 77 61 6e 74 65 64 20 67 72 61 70 68 | we wanted graph| 00000150 69 63 73 20 69 6e 20 62 6f 74 68 20 63 6f 6c 6f |ics in both colo| 00000160 75 72 20 61 6e 64 20 64 65 74 61 69 6c 2c 20 61 |ur and detail, a| 00000170 73 0d 62 79 20 62 6f 74 68 20 6d 65 74 68 6f 64 |s.by both method| 00000180 73 20 74 68 65 20 70 72 6f 64 75 63 74 69 6f 6e |s the production| 00000190 20 6f 66 20 73 75 63 68 20 67 72 61 70 68 69 63 | of such graphic| 000001a0 73 20 77 6f 75 6c 64 20 62 65 20 69 6e 63 72 65 |s would be incre| 000001b0 64 69 62 6c 79 20 73 6c 6f 77 2e 0d 0d 54 68 65 |dibly slow...The| 000001c0 72 65 20 69 73 20 61 20 73 6f 6c 75 74 69 6f 6e |re is a solution| 000001d0 20 74 6f 20 74 68 69 73 20 70 72 6f 62 6c 65 6d | to this problem| 000001e0 2c 20 77 68 69 63 68 20 69 6e 76 6f 6c 76 65 73 |, which involves| 000001f0 20 74 61 6b 69 6e 67 20 61 64 76 61 6e 74 61 67 | taking advantag| 00000200 65 20 6f 66 20 74 68 65 0d 77 61 79 20 69 6e 20 |e of the.way in | 00000210 77 68 69 63 68 20 74 68 65 20 63 6f 6d 70 75 74 |which the comput| 00000220 65 72 27 73 20 76 69 64 65 6f 20 73 79 73 74 65 |er's video syste| 00000230 6d 20 6f 70 65 72 61 74 65 73 2e 20 54 68 65 20 |m operates. The | 00000240 63 6f 6c 6f 75 72 20 6f 66 20 65 61 63 68 20 70 |colour of each p| 00000250 69 78 65 6c 0d 6f 6e 20 79 6f 75 72 20 6d 6f 6e |ixel.on your mon| 00000260 69 74 6f 72 20 69 73 20 64 65 74 65 72 6d 69 6e |itor is determin| 00000270 65 64 20 74 68 65 20 64 61 74 61 20 73 65 6e 74 |ed the data sent| 00000280 20 74 6f 20 74 68 65 20 6d 6f 6e 69 74 6f 72 20 | to the monitor | 00000290 62 79 20 79 6f 75 72 20 63 6f 6d 70 75 74 65 72 |by your computer| 000002a0 20 2d 0d 74 68 61 74 73 20 66 61 69 72 6c 79 20 | -.thats fairly | 000002b0 6f 62 76 69 6f 75 73 2e 20 42 75 74 20 69 66 20 |obvious. But if | 000002c0 79 6f 75 20 68 61 76 65 20 64 72 61 77 6e 20 61 |you have drawn a| 000002d0 20 76 65 72 79 20 63 6f 6d 70 6c 65 78 20 73 65 | very complex se| 000002e0 74 20 6f 66 20 73 68 61 70 65 73 20 6f 6e 0d 74 |t of shapes on.t| 000002f0 68 65 20 63 6f 6d 70 75 74 65 72 20 73 63 72 65 |he computer scre| 00000300 65 6e 2c 20 70 65 72 68 61 70 73 20 75 73 69 6e |en, perhaps usin| 00000310 67 20 61 20 42 41 53 49 43 20 70 72 6f 67 72 61 |g a BASIC progra| 00000320 6d 20 77 68 69 63 68 20 74 6f 6f 6b 20 73 65 76 |m which took sev| 00000330 65 72 61 6c 20 68 6f 75 72 73 0d 74 6f 20 63 61 |eral hours.to ca| 00000340 6c 63 75 6c 61 74 65 20 61 6e 64 20 64 72 61 77 |lculate and draw| 00000350 20 74 68 65 20 72 65 73 75 6c 74 20 79 6f 75 20 | the result you | 00000360 73 65 65 20 6f 6e 20 74 68 65 20 73 63 72 65 65 |see on the scree| 00000370 6e 2c 20 68 6f 77 20 64 6f 65 73 20 74 68 65 20 |n, how does the | 00000380 0d 63 6f 6d 70 75 74 65 72 20 72 65 6d 65 6d 62 |.computer rememb| 00000390 65 72 20 74 68 65 20 63 6f 6c 6f 75 72 20 6f 66 |er the colour of| 000003a0 20 65 76 65 72 79 20 70 69 78 65 6c 20 6f 6e 20 | every pixel on | 000003b0 74 68 65 20 73 63 72 65 65 6e 2c 20 61 6e 64 20 |the screen, and | 000003c0 6b 6e 6f 77 20 77 68 61 74 0d 64 61 74 61 20 74 |know what.data t| 000003d0 6f 20 73 65 6e 64 20 74 6f 20 79 6f 75 72 20 6d |o send to your m| 000003e0 6f 6e 69 74 6f 72 3f 20 54 68 65 20 61 6e 73 77 |onitor? The answ| 000003f0 65 72 20 69 73 20 73 69 6d 70 6c 65 3a 20 77 69 |er is simple: wi| 00000400 74 68 69 6e 20 79 6f 75 72 20 63 6f 6d 70 75 74 |thin your comput| 00000410 65 72 27 73 0d 6d 65 6d 6f 72 79 20 74 68 65 72 |er's.memory ther| 00000420 65 20 69 73 20 61 6e 20 61 72 65 61 20 73 65 74 |e is an area set| 00000430 20 61 73 69 64 65 20 74 6f 20 73 74 6f 72 65 20 | aside to store | 00000440 74 68 65 20 63 6f 6c 6f 75 72 20 6f 66 20 65 76 |the colour of ev| 00000450 65 72 79 20 70 69 78 65 6c 20 6f 6e 20 74 68 65 |ery pixel on the| 00000460 0d 73 63 72 65 65 6e 2c 20 61 6e 64 20 77 68 65 |.screen, and whe| 00000470 6e 20 74 68 65 20 6d 6f 6e 69 74 6f 72 20 72 65 |n the monitor re| 00000480 71 75 65 73 74 73 20 74 68 65 20 63 6f 6c 6f 75 |quests the colou| 00000490 72 20 6f 66 20 61 20 70 61 72 74 69 63 75 6c 61 |r of a particula| 000004a0 72 20 70 69 78 65 6c 2c 20 74 68 65 0d 63 6f 6d |r pixel, the.com| 000004b0 70 75 74 65 72 20 73 69 6d 70 6c 79 20 72 65 61 |puter simply rea| 000004c0 64 73 20 74 68 65 20 63 6f 6c 6f 75 72 20 6f 66 |ds the colour of| 000004d0 20 74 68 65 20 70 69 78 65 6c 20 66 72 6f 6d 20 | the pixel from | 000004e0 74 68 69 73 20 61 72 65 61 20 6f 66 20 6d 65 6d |this area of mem| 000004f0 6f 72 79 2e 0d 54 68 69 73 20 61 72 65 61 20 6f |ory..This area o| 00000500 66 20 6d 65 6d 6f 72 79 20 69 73 20 63 61 6c 6c |f memory is call| 00000510 65 64 20 22 53 63 72 65 65 6e 20 4d 65 6d 6f 72 |ed "Screen Memor| 00000520 79 22 2e 20 49 74 20 63 61 6e 20 62 65 20 63 6f |y". It can be co| 00000530 6e 73 69 64 65 72 65 64 20 61 73 20 61 0d 73 6f |nsidered as a.so| 00000540 72 74 20 6f 66 20 67 69 61 6e 74 20 74 61 62 6c |rt of giant tabl| 00000550 65 2c 20 68 6f 6c 64 69 6e 67 20 64 61 74 61 20 |e, holding data | 00000560 66 6f 72 20 74 68 65 20 63 6f 6c 6f 75 72 73 20 |for the colours | 00000570 6f 66 20 61 6c 6c 20 6f 66 20 74 68 65 20 70 69 |of all of the pi| 00000580 78 65 6c 73 20 69 6e 0d 61 20 68 75 67 65 20 6d |xels in.a huge m| 00000590 61 74 72 69 78 20 6f 66 20 6d 65 6d 6f 72 79 20 |atrix of memory | 000005a0 6c 6f 63 61 74 69 6f 6e 73 2e 0d 0d 42 75 74 20 |locations...But | 000005b0 6f 66 20 77 68 61 74 20 75 73 65 20 69 73 20 74 |of what use is t| 000005c0 68 69 73 20 74 6f 20 74 68 65 20 70 72 6f 67 72 |his to the progr| 000005d0 61 6d 6d 65 72 20 79 6f 75 20 6d 69 67 68 74 20 |ammer you might | 000005e0 62 65 20 77 6f 6e 64 65 72 69 6e 67 2e 20 54 68 |be wondering. Th| 000005f0 65 0d 61 6e 73 77 65 72 20 69 73 20 74 68 61 74 |e.answer is that| 00000600 20 77 68 65 6e 20 79 6f 75 20 75 73 65 20 75 73 | when you use us| 00000610 65 72 20 64 65 66 69 6e 65 64 20 63 68 61 72 61 |er defined chara| 00000620 63 74 65 72 73 2c 20 4d 4f 56 45 20 61 6e 64 20 |cters, MOVE and | 00000630 44 52 41 57 20 63 6f 6d 6d 61 6e 64 73 2c 0d 6f |DRAW commands,.o| 00000640 72 20 61 6e 79 20 6f 74 68 65 72 20 6d 65 74 68 |r any other meth| 00000650 6f 64 20 6f 66 20 70 75 74 74 69 6e 67 20 61 6e |od of putting an| 00000660 79 74 68 69 6e 67 20 6f 6e 20 74 68 65 20 73 63 |ything on the sc| 00000670 72 65 65 6e 2c 20 74 68 65 20 63 6f 6d 70 75 74 |reen, the comput| 00000680 65 72 20 73 69 6d 70 6c 79 0d 61 6c 74 65 72 73 |er simply.alters| 00000690 20 61 20 66 65 77 20 76 61 6c 75 65 73 20 69 6e | a few values in| 000006a0 20 74 68 69 73 20 67 69 61 6e 74 20 74 61 62 6c | this giant tabl| 000006b0 65 2e 20 42 75 74 20 74 68 65 20 63 6f 6d 70 75 |e. But the compu| 000006c0 74 65 72 20 74 61 6b 65 73 20 74 69 6d 65 20 74 |ter takes time t| 000006d0 6f 0d 70 72 6f 63 65 73 73 20 79 6f 75 72 20 4d |o.process your M| 000006e0 4f 56 45 20 61 6e 64 20 44 52 41 57 20 63 6f 6d |OVE and DRAW com| 000006f0 6d 61 6e 64 73 20 74 6f 20 77 6f 72 6b 20 6f 75 |mands to work ou| 00000700 74 20 77 68 69 63 68 20 76 61 6c 75 65 73 20 69 |t which values i| 00000710 6e 20 74 68 65 20 74 61 62 6c 65 0d 74 6f 20 61 |n the table.to a| 00000720 6c 74 65 72 2e 20 49 66 20 79 6f 75 20 63 6f 75 |lter. If you cou| 00000730 6c 64 20 62 79 70 61 73 73 20 74 68 69 73 20 73 |ld bypass this s| 00000740 74 61 67 65 2c 20 61 6e 64 20 73 65 74 20 74 68 |tage, and set th| 00000750 65 20 76 61 6c 75 65 73 20 69 6e 20 74 68 69 73 |e values in this| 00000760 20 67 69 61 6e 74 0d 74 61 62 6c 65 20 79 6f 75 | giant.table you| 00000770 72 73 65 6c 66 20 77 69 74 68 6f 75 74 20 75 73 |rself without us| 00000780 69 6e 67 20 74 68 65 20 63 6f 6d 70 75 74 65 72 |ing the computer| 00000790 27 73 20 67 65 6e 65 72 61 6c 20 70 75 72 70 6f |'s general purpo| 000007a0 73 65 20 67 72 61 70 68 69 63 73 0d 63 6f 6d 6d |se graphics.comm| 000007b0 61 6e 64 73 2c 20 79 6f 75 20 63 61 6e 20 67 65 |ands, you can ge| 000007c0 74 20 65 78 61 63 74 6c 79 20 74 68 65 20 72 65 |t exactly the re| 000007d0 73 75 6c 74 20 74 68 61 74 20 79 6f 75 20 77 61 |sult that you wa| 000007e0 6e 74 2c 20 61 6e 64 20 6d 75 63 68 20 66 61 73 |nt, and much fas| 000007f0 74 65 72 0d 74 68 61 6e 20 79 6f 75 20 77 6f 75 |ter.than you wou| 00000800 6c 64 20 61 63 68 69 65 76 65 20 69 66 20 79 6f |ld achieve if yo| 00000810 75 20 77 65 72 65 20 64 6f 69 6e 67 20 74 68 65 |u were doing the| 00000820 20 6f 70 65 72 61 74 69 6f 6e 20 74 68 72 6f 75 | operation throu| 00000830 67 68 20 74 68 65 0d 63 6f 6d 70 75 74 65 72 27 |gh the.computer'| 00000840 73 20 63 6f 6d 6d 61 6e 64 73 2e 20 54 68 65 73 |s commands. Thes| 00000850 65 20 68 61 76 65 20 74 6f 20 70 72 6f 63 65 73 |e have to proces| 00000860 73 20 74 68 65 20 70 61 72 61 6d 65 74 65 72 73 |s the parameters| 00000870 20 77 68 69 63 68 20 79 6f 75 20 67 69 76 65 2c | which you give,| 00000880 0d 61 6e 64 20 74 68 65 6e 20 63 61 6c 63 75 6c |.and then calcul| 00000890 61 74 65 20 77 68 65 72 65 20 61 62 6f 75 74 73 |ate where abouts| 000008a0 20 69 6e 20 74 68 65 20 67 69 61 6e 74 20 74 61 | in the giant ta| 000008b0 62 6c 65 20 79 6f 75 20 77 61 6e 74 20 74 6f 20 |ble you want to | 000008c0 61 6c 74 65 72 2c 0d 62 65 66 6f 72 65 20 74 68 |alter,.before th| 000008d0 65 79 20 63 61 6e 20 61 63 74 75 61 6c 6c 79 20 |ey can actually | 000008e0 64 6f 20 61 6e 79 20 75 73 65 66 75 6c 20 77 6f |do any useful wo| 000008f0 72 6b 2e 20 54 68 75 73 20 61 20 6c 6f 74 20 6f |rk. Thus a lot o| 00000900 66 20 63 6f 6d 70 75 74 65 72 20 74 69 6d 65 0d |f computer time.| 00000910 69 73 20 77 61 73 74 65 64 20 69 6e 20 70 65 72 |is wasted in per| 00000920 66 6f 72 6d 69 6e 67 20 63 61 6c 63 75 6c 61 74 |forming calculat| 00000930 69 6f 6e 73 2c 20 77 68 69 63 68 20 63 61 6e 20 |ions, which can | 00000940 61 63 74 75 61 6c 6c 79 20 62 65 20 73 6b 69 70 |actually be skip| 00000950 70 65 64 20 69 66 20 74 68 65 0d 70 72 6f 67 72 |ped if the.progr| 00000960 61 6d 6d 65 72 20 69 73 20 63 61 72 65 66 75 6c |ammer is careful| 00000970 2e 0d 0d 54 68 65 72 65 20 61 72 65 20 74 77 6f |...There are two| 00000980 20 70 6f 73 73 69 62 6c 65 20 77 61 79 73 20 6f | possible ways o| 00000990 66 20 61 63 68 69 65 76 69 6e 67 20 74 68 69 73 |f achieving this| 000009a0 20 69 64 65 61 2c 20 62 6f 74 68 20 6f 66 20 77 | idea, both of w| 000009b0 68 69 63 68 20 61 72 65 20 75 73 65 66 75 6c 0d |hich are useful.| 000009c0 69 6e 20 64 69 66 66 65 72 65 6e 74 20 73 69 74 |in different sit| 000009d0 75 61 74 69 6f 6e 73 3a 0d 0d 31 2e 20 53 61 76 |uations:..1. Sav| 000009e0 65 20 73 63 72 65 65 6e 20 6d 65 6d 6f 72 79 20 |e screen memory | 000009f0 74 6f 20 64 69 73 63 2e 0d 0d 54 68 69 73 20 69 |to disc...This i| 00000a00 64 65 61 20 69 73 20 66 61 69 72 6c 79 20 73 69 |dea is fairly si| 00000a10 6d 70 6c 65 20 74 6f 20 75 6e 64 65 72 73 74 61 |mple to understa| 00000a20 6e 64 2e 20 59 6f 75 2c 20 61 73 20 74 68 65 20 |nd. You, as the | 00000a30 70 72 6f 67 72 61 6d 6d 65 72 2c 20 77 72 69 74 |programmer, writ| 00000a40 65 20 61 0d 70 72 6f 67 72 61 6d 20 74 6f 20 70 |e a.program to p| 00000a50 6c 6f 74 20 74 68 65 20 61 72 74 77 6f 72 6b 20 |lot the artwork | 00000a60 66 6f 72 20 79 6f 75 72 20 70 72 6f 67 72 61 6d |for your program| 00000a70 20 6f 6e 74 6f 20 74 68 65 20 73 63 72 65 65 6e | onto the screen| 00000a80 2c 20 74 61 6b 69 6e 67 0d 68 6f 77 65 76 65 72 |, taking.however| 00000a90 20 6d 61 6e 79 20 68 6f 75 72 73 20 69 74 20 6d | many hours it m| 00000aa0 61 79 20 74 61 6b 65 20 74 6f 20 63 6f 6d 70 6c |ay take to compl| 00000ab0 65 74 65 20 61 6c 6c 20 6f 66 20 74 68 65 20 63 |ete all of the c| 00000ac0 61 6c 63 75 6c 61 74 69 6f 6e 73 0d 72 65 71 75 |alculations.requ| 00000ad0 69 72 65 64 20 74 6f 20 70 6c 6f 74 20 74 68 65 |ired to plot the| 00000ae0 20 67 72 61 70 68 69 63 73 2e 20 59 6f 75 20 72 | graphics. You r| 00000af0 75 6e 20 74 68 69 73 20 70 72 6f 67 72 61 6d 20 |un this program | 00000b00 6f 6e 63 65 20 6f 6e 20 79 6f 75 72 20 63 6f 6d |once on your com| 00000b10 70 75 74 65 72 2c 0d 73 6f 20 74 68 61 74 20 79 |puter,.so that y| 00000b20 6f 75 72 20 6d 61 73 74 65 72 70 69 65 63 65 20 |our masterpiece | 00000b30 69 73 20 73 74 6f 72 65 64 20 69 6e 20 74 68 65 |is stored in the| 00000b40 20 73 63 72 65 65 6e 20 6d 65 6d 6f 72 79 20 6f | screen memory o| 00000b50 66 20 79 6f 75 72 20 63 6f 6d 70 75 74 65 72 0d |f your computer.| 00000b60 28 69 65 2e 20 69 73 20 6f 6e 20 74 68 65 20 6d |(ie. is on the m| 00000b70 6f 6e 69 74 6f 72 20 6f 66 20 79 6f 75 72 20 63 |onitor of your c| 00000b80 6f 6d 70 75 74 65 72 29 2e 20 59 6f 75 20 74 68 |omputer). You th| 00000b90 61 6e 20 74 72 61 6e 73 66 65 72 20 74 68 65 20 |an transfer the | 00000ba0 65 6e 74 69 72 65 0d 63 6f 6e 74 65 6e 74 73 20 |entire.contents | 00000bb0 6f 66 20 74 68 65 20 73 63 72 65 65 6e 20 6d 65 |of the screen me| 00000bc0 6d 6f 72 79 20 6f 6e 20 79 6f 75 72 20 63 6f 6d |mory on your com| 00000bd0 70 75 74 65 72 20 74 6f 20 66 6c 6f 70 70 79 20 |puter to floppy | 00000be0 64 69 73 63 2e 0d 0d 54 68 65 6e 2c 20 69 6e 20 |disc...Then, in | 00000bf0 74 68 65 20 66 69 6e 61 6c 20 70 72 6f 67 72 61 |the final progra| 00000c00 6d 20 77 68 69 63 68 20 79 6f 75 20 77 61 6e 74 |m which you want| 00000c10 20 74 68 65 20 75 73 65 72 20 74 6f 20 6f 70 65 | the user to ope| 00000c20 72 61 74 65 2c 20 79 6f 75 20 69 6e 63 6c 75 64 |rate, you includ| 00000c30 65 0d 61 20 63 6f 6d 6d 61 6e 64 20 74 6f 20 6c |e.a command to l| 00000c40 6f 61 64 20 74 68 69 73 20 64 61 74 61 20 62 61 |oad this data ba| 00000c50 63 6b 20 66 72 6f 6d 20 66 6c 6f 70 70 79 20 64 |ck from floppy d| 00000c60 69 73 63 20 69 6e 74 6f 20 74 68 65 20 73 63 72 |isc into the scr| 00000c70 65 65 6e 20 6d 65 6d 6f 72 79 0d 6f 66 20 74 68 |een memory.of th| 00000c80 65 69 72 20 63 6f 6d 70 75 74 65 72 2e 20 49 6e |eir computer. In| 00000c90 20 61 20 6d 61 74 74 65 72 20 6f 66 20 61 20 63 | a matter of a c| 00000ca0 6f 75 70 6c 65 20 6f 66 20 73 65 63 6f 6e 64 73 |ouple of seconds| 00000cb0 2c 20 67 72 61 70 68 69 63 73 20 77 68 69 63 68 |, graphics which| 00000cc0 20 74 6f 6f 6b 0d 70 6f 73 73 69 62 6c 65 20 68 | took.possible h| 00000cd0 6f 75 72 73 20 74 6f 20 63 61 6c 63 75 6c 61 74 |ours to calculat| 00000ce0 65 20 77 69 6c 6c 20 61 70 70 65 61 72 20 6f 6e |e will appear on| 00000cf0 20 74 68 65 69 72 20 73 63 72 65 65 6e 2e 20 54 | their screen. T| 00000d00 68 69 73 20 69 73 20 61 0d 74 65 63 68 6e 69 71 |his is a.techniq| 00000d10 75 65 20 77 68 69 63 68 20 49 20 68 61 76 65 20 |ue which I have | 00000d20 75 73 65 64 20 69 6e 20 73 65 76 65 72 61 6c 20 |used in several | 00000d30 6f 66 20 6d 79 20 70 72 6f 67 72 61 6d 73 2e 20 |of my programs. | 00000d40 54 68 65 20 6d 61 69 6e 20 6d 65 6e 75 20 6f 66 |The main menu of| 00000d50 0d 53 68 69 70 77 72 65 63 6b 65 64 20 49 49 3a |.Shipwrecked II:| 00000d60 20 4a 75 70 69 74 65 72 20 33 2c 20 77 68 65 72 | Jupiter 3, wher| 00000d70 65 20 79 6f 75 20 73 65 6c 65 63 74 20 50 6c 61 |e you select Pla| 00000d80 79 2c 20 49 6e 73 74 72 75 63 74 69 6f 6e 73 2c |y, Instructions,| 00000d90 20 47 61 6d 65 0d 43 6f 6d 70 6c 65 74 65 20 6f | Game.Complete o| 00000da0 72 20 43 68 65 61 74 20 77 69 74 68 20 74 68 65 |r Cheat with the| 00000db0 20 73 74 61 72 66 69 65 6c 64 20 62 61 63 6b 64 | starfield backd| 00000dc0 72 6f 70 20 77 61 73 20 64 6f 6e 65 20 69 6e 20 |rop was done in | 00000dd0 74 68 69 73 20 77 61 79 20 2d 20 74 68 65 0d 73 |this way - the.s| 00000de0 63 72 65 65 6e 20 74 6f 6f 6b 20 6e 65 61 72 6c |creen took nearl| 00000df0 79 20 61 6e 20 68 6f 75 72 20 66 6f 72 20 6d 79 |y an hour for my| 00000e00 20 63 6f 6d 70 75 74 65 72 20 74 6f 20 63 61 6c | computer to cal| 00000e10 63 75 6c 61 74 65 2c 20 62 75 74 20 49 20 77 61 |culate, but I wa| 00000e20 73 20 61 62 6c 65 0d 74 6f 20 6d 61 6b 65 20 69 |s able.to make i| 00000e30 74 20 61 70 70 65 61 72 20 69 6e 20 73 65 63 6f |t appear in seco| 00000e40 6e 64 73 20 6f 6e 20 79 6f 75 72 20 73 63 72 65 |nds on your scre| 00000e50 65 6e 2e 20 49 20 73 68 6f 75 6c 64 20 61 6c 73 |en. I should als| 00000e60 6f 20 6d 65 6e 74 69 6f 6e 20 74 68 65 20 74 69 |o mention the ti| 00000e70 74 6c 65 0d 73 63 72 65 65 6e 20 74 6f 20 53 68 |tle.screen to Sh| 00000e80 69 70 77 72 65 63 6b 20 77 69 74 68 20 74 68 65 |ipwreck with the| 00000e90 20 61 6e 69 6d 61 74 65 64 20 73 65 61 2c 20 6e | animated sea, n| 00000ea0 6f 74 20 74 6f 20 6d 65 6e 74 69 6f 6e 20 74 68 |ot to mention th| 00000eb0 65 20 65 6e 64 6c 65 73 73 20 45 55 47 0d 74 69 |e endless EUG.ti| 00000ec0 74 6c 65 20 73 63 72 65 65 6e 73 20 49 20 68 61 |tle screens I ha| 00000ed0 76 65 20 64 6f 6e 65 20 69 6e 20 74 68 69 73 20 |ve done in this | 00000ee0 77 61 79 20 2d 20 74 68 65 20 43 68 72 69 73 74 |way - the Christ| 00000ef0 6d 61 73 20 45 55 47 20 33 35 20 73 63 72 65 65 |mas EUG 35 scree| 00000f00 6e 20 77 69 74 68 0d 74 68 65 20 73 77 69 72 6c |n with.the swirl| 00000f10 79 20 62 6c 75 65 20 62 61 63 6b 67 72 6f 75 6e |y blue backgroun| 00000f20 64 20 28 63 72 65 64 69 74 65 64 20 65 72 72 6f |d (credited erro| 00000f30 6e 65 6f 75 73 6c 79 20 74 6f 20 52 6f 62 65 72 |neously to Rober| 00000f40 74 20 53 70 72 6f 77 73 6f 6e 29 20 74 6f 6f 6b |t Sprowson) took| 00000f50 0d 74 77 6f 20 77 68 6f 6c 65 20 64 61 79 73 20 |.two whole days | 00000f60 74 6f 20 70 6c 6f 74 21 0d 0d 49 6e 20 6f 72 64 |to plot!..In ord| 00000f70 65 72 20 74 6f 20 61 63 68 69 65 76 65 20 74 68 |er to achieve th| 00000f80 69 73 2c 20 79 6f 75 20 73 69 6d 70 6c 79 20 6e |is, you simply n| 00000f90 65 65 64 20 74 6f 20 75 6e 64 65 72 73 74 61 6e |eed to understan| 00000fa0 64 20 74 77 6f 20 42 41 53 49 43 20 63 6f 6d 6d |d two BASIC comm| 00000fb0 61 6e 64 73 3a 0d 0d 2a 53 41 56 45 20 46 69 6c |ands:..*SAVE Fil| 00000fc0 65 6e 61 6d 65 20 6e 6e 6e 6e 20 6d 6d 6d 6d 0d |ename nnnn mmmm.| 00000fd0 2a 4c 4f 41 44 20 46 69 6c 65 6e 61 6d 65 20 6e |*LOAD Filename n| 00000fe0 6e 6e 6e 0d 0d 54 68 65 73 65 20 6c 6f 61 64 20 |nnn..These load | 00000ff0 61 6e 64 20 73 61 76 65 20 61 72 65 61 73 20 6f |and save areas o| 00001000 66 20 74 68 65 20 63 6f 6d 70 75 74 65 72 27 73 |f the computer's| 00001010 20 6d 65 6d 6f 72 79 20 74 6f 20 66 6c 6f 70 70 | memory to flopp| 00001020 79 20 64 69 73 63 20 6f 72 20 63 61 73 73 65 74 |y disc or casset| 00001030 74 65 0d 77 69 74 68 20 74 68 65 20 66 69 6c 65 |te.with the file| 00001040 6e 61 6d 65 20 67 69 76 61 6e 20 69 6e 20 70 6c |name givan in pl| 00001050 61 63 65 20 6f 66 20 74 68 65 20 77 6f 72 6b 20 |ace of the work | 00001060 46 69 6c 65 6e 61 6d 65 2c 20 73 74 61 72 74 69 |Filename, starti| 00001070 6e 67 20 61 74 20 6d 65 6d 6f 72 79 0d 6c 6f 63 |ng at memory.loc| 00001080 61 74 69 6f 6e 20 6e 6e 6e 6e 2c 20 61 6e 64 20 |ation nnnn, and | 00001090 63 6f 6e 74 69 6e 75 69 6e 67 20 75 6e 74 69 6c |continuing until| 000010a0 20 6d 65 6d 6f 72 79 20 6c 6f 63 61 74 69 6f 6e | memory location| 000010b0 20 6d 6d 6d 6d 20 28 77 68 65 72 65 20 6e 6e 6e | mmmm (where nnn| 000010c0 6e 20 61 6e 64 20 6d 6d 6d 6d 0d 61 72 65 20 62 |n and mmmm.are b| 000010d0 6f 74 68 20 69 6e 20 68 65 78 69 64 65 63 69 6d |oth in hexidecim| 000010e0 61 6c 20 2d 20 62 61 73 65 20 31 36 29 2e 20 44 |al - base 16). D| 000010f0 6f 6e 27 74 20 77 6f 72 72 79 20 69 66 20 79 6f |on't worry if yo| 00001100 75 20 64 6f 6e 27 74 20 65 6e 74 69 72 65 6c 79 |u don't entirely| 00001110 0d 75 6e 64 65 72 73 74 61 6e 64 20 74 68 69 73 |.understand this| 00001120 20 2d 20 69 74 20 69 73 20 6e 6f 74 20 6e 65 63 | - it is not nec| 00001130 65 73 73 61 72 79 20 74 6f 20 65 6e 74 69 72 65 |essary to entire| 00001140 6c 79 20 75 6e 64 65 72 73 74 61 6e 64 20 74 68 |ly understand th| 00001150 65 20 77 6f 72 6b 69 6e 67 73 0d 6f 66 20 74 68 |e workings.of th| 00001160 65 73 65 20 63 6f 6d 6d 61 6e 64 73 2c 20 6f 72 |ese commands, or| 00001170 20 6f 66 20 68 65 78 69 64 65 63 69 6d 61 6c 20 | of hexidecimal | 00001180 74 6f 20 75 73 65 20 74 68 65 6d 20 74 6f 20 73 |to use them to s| 00001190 74 6f 72 65 20 61 6e 64 20 72 65 74 72 69 65 76 |tore and retriev| 000011a0 65 0d 73 63 72 65 65 6e 20 6d 65 6d 6f 72 79 2e |e.screen memory.| 000011b0 20 41 6c 6c 20 79 6f 75 20 6e 65 65 64 20 74 6f | All you need to| 000011c0 20 64 6f 20 69 73 20 73 75 62 73 74 69 74 75 74 | do is substitut| 000011d0 65 20 6e 6e 6e 6e 20 61 6e 64 20 6d 6d 6d 6d 20 |e nnnn and mmmm | 000011e0 66 6f 72 20 74 68 65 0d 61 64 64 72 65 73 73 65 |for the.addresse| 000011f0 73 20 6f 66 20 74 68 65 20 73 74 61 72 74 20 61 |s of the start a| 00001200 6e 64 20 66 69 6e 69 73 68 20 6f 66 20 73 63 72 |nd finish of scr| 00001210 65 65 6e 20 6d 65 6d 6f 72 79 2e 20 54 68 65 20 |een memory. The | 00001220 6c 6f 63 61 74 69 6f 6e 20 6f 66 20 74 68 65 73 |location of thes| 00001230 65 0d 77 69 74 68 69 6e 20 79 6f 75 72 20 63 6f |e.within your co| 00001240 6d 70 75 74 65 72 20 76 61 72 69 65 73 20 64 65 |mputer varies de| 00001250 70 65 64 69 6e 67 20 75 70 6f 6e 20 77 68 69 63 |peding upon whic| 00001260 68 20 67 72 61 70 68 69 63 73 20 6d 6f 64 65 20 |h graphics mode | 00001270 79 6f 75 20 61 72 65 20 75 73 69 6e 67 0d 28 77 |you are using.(w| 00001280 68 69 63 68 20 79 6f 75 20 73 65 6c 65 63 74 65 |hich you selecte| 00001290 64 20 75 73 69 6e 67 20 74 68 65 20 4d 4f 44 45 |d using the MODE| 000012a0 20 63 6f 6d 6d 61 6e 64 20 2d 20 73 65 65 20 70 | command - see p| 000012b0 72 65 76 69 6f 75 73 20 74 75 74 6f 72 69 61 6c |revious tutorial| 000012c0 20 69 66 20 79 6f 75 0d 61 72 65 20 75 6e 73 75 | if you.are unsu| 000012d0 72 65 20 6f 66 20 77 68 61 74 20 74 68 69 73 20 |re of what this | 000012e0 69 73 29 2c 20 62 75 74 20 69 73 20 61 6c 77 61 |is), but is alwa| 000012f0 79 73 20 63 6f 6e 73 74 61 6e 74 20 66 6f 72 20 |ys constant for | 00001300 61 6e 79 20 70 61 72 74 69 63 75 6c 61 72 0d 6d |any particular.m| 00001310 6f 64 65 2e 20 74 68 65 20 76 61 6c 75 65 73 20 |ode. the values | 00001320 66 6f 72 20 74 68 65 20 64 69 66 66 65 72 65 6e |for the differen| 00001330 74 20 6d 6f 64 65 73 20 61 72 65 20 67 69 76 65 |t modes are give| 00001340 6e 20 62 65 6c 6f 77 3a 0d 0d 4d 6f 64 65 20 20 |n below:..Mode | 00001350 20 20 20 20 20 20 20 20 20 20 6e 6e 6e 6e 20 20 | nnnn | 00001360 20 20 6d 6d 6d 6d 20 20 20 4e 4f 54 45 53 3a 0d | mmmm NOTES:.| 00001370 30 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |0 | 00001380 33 30 30 30 20 20 20 20 37 46 46 46 0d 31 20 20 |3000 7FFF.1 | 00001390 20 20 20 20 20 20 20 20 20 20 20 20 20 33 30 30 | 300| 000013a0 30 20 20 20 20 37 46 46 46 20 20 20 2d 20 6e 6e |0 7FFF - nn| 000013b0 6e 6e 20 61 6e 64 20 6d 6d 6d 6d 20 76 61 6c 75 |nn and mmmm valu| 000013c0 65 73 20 67 69 76 65 6e 20 74 6f 20 74 68 65 20 |es given to the | 000013d0 6c 65 66 74 20 61 72 65 0d 32 20 20 20 20 20 20 |left are.2 | 000013e0 20 20 20 20 20 20 20 20 20 33 30 30 30 20 20 20 | 3000 | 000013f0 20 37 46 46 46 20 20 20 61 6c 6c 20 69 6e 20 68 | 7FFF all in h| 00001400 65 78 69 64 65 63 69 6d 61 6c 2e 20 54 68 65 72 |exidecimal. Ther| 00001410 65 66 6f 72 65 20 74 68 65 79 20 63 61 6e 20 62 |efore they can b| 00001420 65 0d 33 20 20 20 20 20 20 20 20 20 20 20 20 20 |e.3 | 00001430 20 20 34 30 30 30 20 20 20 20 37 46 46 46 20 20 | 4000 7FFF | 00001440 20 73 75 62 73 74 69 74 75 74 65 64 20 64 69 72 | substituted dir| 00001450 65 63 74 6c 79 20 69 6e 74 6f 20 74 68 65 20 2a |ectly into the *| 00001460 4c 4f 41 44 20 61 6e 64 20 2a 53 41 56 45 0d 34 |LOAD and *SAVE.4| 00001470 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 35 | 5| 00001480 38 30 30 20 20 20 20 37 46 46 46 20 20 20 63 6f |800 7FFF co| 00001490 6d 6d 61 6e 64 73 20 77 69 74 68 20 6e 6f 20 63 |mmands with no c| 000014a0 6f 6e 76 65 72 73 69 6f 6e 20 72 65 71 75 69 72 |onversion requir| 000014b0 65 64 2e 0d 35 20 20 20 20 20 20 20 20 20 20 20 |ed..5 | 000014c0 20 20 20 20 35 38 30 30 20 20 20 20 37 46 46 46 | 5800 7FFF| 000014d0 0d 36 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |.6 | 000014e0 20 36 30 30 30 20 20 20 20 37 46 46 46 20 20 20 | 6000 7FFF | 000014f0 2d 20 56 61 6c 75 65 73 20 61 72 65 20 6e 6f 74 |- Values are not| 00001500 20 76 61 6c 69 64 20 66 6f 72 20 74 68 65 20 42 | valid for the B| 00001510 42 43 20 6d 6f 64 65 6c 20 41 20 69 6e 0d 37 20 |BC model A in.7 | 00001520 20 20 20 20 20 20 20 20 20 20 20 20 20 20 37 43 | 7C| 00001530 30 30 20 20 20 20 37 46 46 46 20 20 20 6d 6f 64 |00 7FFF mod| 00001540 65 73 20 34 2c 35 2c 36 20 6f 72 20 37 2e 0d 0d |es 4,5,6 or 7...| 00001550 45 78 61 6d 70 6c 65 73 3a 0d 0d 53 75 70 70 6f |Examples:..Suppo| 00001560 73 65 20 79 6f 75 20 61 72 65 20 69 6e 20 6d 6f |se you are in mo| 00001570 64 65 20 32 2c 20 61 6e 64 20 77 61 6e 74 20 74 |de 2, and want t| 00001580 6f 20 73 74 6f 72 65 20 74 68 65 20 73 63 72 65 |o store the scre| 00001590 65 6e 20 74 6f 20 61 20 66 6c 6f 70 70 79 2e 20 |en to a floppy. | 000015a0 46 72 6f 6d 0d 74 68 65 20 74 61 62 6c 65 20 61 |From.the table a| 000015b0 62 6f 76 65 2c 20 6e 6e 6e 6e 20 69 73 20 33 30 |bove, nnnn is 30| 000015c0 30 30 20 61 6e 64 20 6d 6d 6d 6d 20 69 73 20 37 |00 and mmmm is 7| 000015d0 46 46 46 20 66 6f 72 20 6d 6f 64 65 20 32 2e 20 |FFF for mode 2. | 000015e0 54 68 65 72 65 66 6f 72 65 2c 20 74 6f 0d 73 61 |Therefore, to.sa| 000015f0 76 65 20 74 68 65 20 73 63 72 65 65 6e 20 75 6e |ve the screen un| 00001600 64 65 72 20 74 68 65 20 66 69 6c 65 6e 61 6d 65 |der the filename| 00001610 20 22 53 63 72 65 65 6e 22 2c 20 79 6f 75 20 77 | "Screen", you w| 00001620 6f 75 6c 64 20 74 79 70 65 3a 0d 0d 2a 53 41 56 |ould type:..*SAV| 00001630 45 20 53 63 72 65 65 6e 20 33 30 30 30 20 37 46 |E Screen 3000 7F| 00001640 46 46 0d 0d 4e 6f 77 2c 20 69 66 20 79 6f 75 20 |FF..Now, if you | 00001650 77 61 6e 74 20 74 6f 20 72 65 73 74 6f 72 65 20 |want to restore | 00001660 74 68 65 20 73 63 72 65 65 6e 20 61 67 61 69 6e |the screen again| 00001670 2c 20 61 6e 64 20 70 75 74 20 79 6f 75 72 20 67 |, and put your g| 00001680 72 61 70 68 69 63 73 20 62 61 63 6b 0d 6f 6e 20 |raphics back.on | 00001690 74 68 65 20 73 63 72 65 65 6e 20 61 67 61 69 6e |the screen again| 000016a0 2c 20 79 6f 75 20 77 6f 75 6c 64 20 75 73 65 20 |, you would use | 000016b0 2a 4c 4f 41 44 2e 20 4e 6f 74 69 63 65 20 74 68 |*LOAD. Notice th| 000016c0 61 74 20 74 68 69 73 20 74 69 6d 65 20 6f 6e 6c |at this time onl| 000016d0 79 20 61 0d 76 61 6c 75 65 20 66 6f 72 20 6e 6e |y a.value for nn| 000016e0 6e 6e 20 69 73 20 72 65 71 75 69 72 65 64 2c 20 |nn is required, | 000016f0 61 6e 64 20 6e 6f 74 20 66 6f 72 20 6d 6d 6d 6d |and not for mmmm| 00001700 3a 0d 0d 2a 4c 4f 41 44 20 53 63 72 65 65 6e 20 |:..*LOAD Screen | 00001710 33 30 30 30 0d 0d 59 6f 75 20 63 61 6e 20 74 72 |3000..You can tr| 00001720 79 20 74 68 69 73 20 6f 75 74 20 6e 6f 77 2c 20 |y this out now, | 00001730 69 66 20 79 6f 75 20 73 77 69 74 63 68 20 6f 6e |if you switch on| 00001740 20 79 6f 75 72 20 45 6c 65 63 74 72 6f 6e 2c 20 | your Electron, | 00001750 61 6e 64 20 69 6e 73 65 72 74 20 61 20 77 6f 72 |and insert a wor| 00001760 6b 0d 64 69 73 63 20 69 6e 74 6f 20 79 6f 75 72 |k.disc into your| 00001770 20 66 6c 6f 70 70 79 20 64 72 69 76 65 2e 20 49 | floppy drive. I| 00001780 66 20 79 6f 75 20 75 73 65 20 41 44 46 53 2c 20 |f you use ADFS, | 00001790 79 6f 75 20 6d 61 79 20 6e 65 65 64 20 74 6f 20 |you may need to | 000017a0 75 73 65 20 2a 4d 4f 55 4e 54 0d 74 6f 20 73 65 |use *MOUNT.to se| 000017b0 6c 65 63 74 20 74 68 65 20 66 6c 6f 70 70 79 20 |lect the floppy | 000017c0 64 69 73 63 2c 20 61 6e 64 20 62 65 20 61 62 6c |disc, and be abl| 000017d0 65 20 74 6f 20 77 72 69 74 65 20 74 6f 20 69 74 |e to write to it| 000017e0 2e 20 4e 6f 77 20 65 6e 74 65 72 20 6d 6f 64 65 |. Now enter mode| 000017f0 20 32 0d 62 79 20 74 79 70 69 6e 67 3a 0d 0d 4d | 2.by typing:..M| 00001800 4f 44 45 20 32 0d 0d 4e 6f 77 20 74 79 70 65 20 |ODE 2..Now type | 00001810 73 6f 6d 65 20 74 65 78 74 20 6f 6e 20 74 68 65 |some text on the| 00001820 20 73 63 72 65 65 6e 20 77 68 69 63 68 20 77 69 | screen which wi| 00001830 6c 6c 20 72 65 70 72 65 73 65 6e 74 20 74 68 65 |ll represent the| 00001840 20 67 72 61 70 68 69 63 73 20 77 68 69 63 68 0d | graphics which.| 00001850 79 6f 75 20 77 61 6e 74 20 74 6f 20 73 61 76 65 |you want to save| 00001860 2e 20 57 68 65 6e 20 79 6f 75 20 68 61 76 65 20 |. When you have | 00001870 66 69 6e 69 73 68 65 64 2c 20 73 61 76 65 20 74 |finished, save t| 00001880 68 65 20 63 6f 6e 74 65 6e 74 73 20 6f 66 20 73 |he contents of s| 00001890 63 72 65 65 6e 20 6d 65 6d 6f 72 79 0d 74 6f 20 |creen memory.to | 000018a0 66 6c 6f 70 70 79 20 64 69 73 6b 20 61 73 20 73 |floppy disk as s| 000018b0 68 6f 77 6e 20 61 62 6f 76 65 2c 20 62 79 20 74 |hown above, by t| 000018c0 79 70 69 6e 67 3a 0d 0d 2a 53 41 56 45 20 53 63 |yping:..*SAVE Sc| 000018d0 72 65 65 6e 20 33 30 30 30 20 37 46 46 46 0d 0d |reen 3000 7FFF..| 000018e0 57 68 65 6e 20 74 68 65 20 64 69 73 6b 20 64 72 |When the disk dr| 000018f0 69 76 65 20 68 61 73 20 66 69 6e 69 73 68 65 64 |ive has finished| 00001900 2c 20 63 6c 65 61 72 20 74 68 65 20 74 65 78 74 |, clear the text| 00001910 20 6f 66 66 20 74 68 65 20 73 63 72 65 65 6e 20 | off the screen | 00001920 62 79 20 74 79 70 69 6e 67 3a 0d 0d 43 4c 53 0d |by typing:..CLS.| 00001930 0d 54 68 65 20 74 65 78 74 20 77 68 69 63 68 20 |.The text which | 00001940 79 6f 75 20 74 79 70 65 64 20 6f 6e 74 6f 20 74 |you typed onto t| 00001950 68 65 20 73 63 72 65 65 6e 20 68 61 73 20 6e 6f |he screen has no| 00001960 77 20 62 65 65 6e 20 77 69 70 65 64 20 66 72 6f |w been wiped fro| 00001970 6d 20 74 68 65 0d 63 6f 6d 70 75 74 65 72 27 73 |m the.computer's| 00001980 20 6d 65 6d 6f 72 79 2c 20 62 75 74 20 73 68 6f | memory, but sho| 00001990 75 6c 64 20 73 74 69 6c 6c 20 62 65 20 73 74 6f |uld still be sto| 000019a0 72 65 64 20 6f 6e 20 74 68 65 20 66 6c 6f 70 70 |red on the flopp| 000019b0 79 20 64 69 73 63 2e 20 57 65 20 63 61 6e 0d 73 |y disc. We can.s| 000019c0 68 6f 77 20 74 68 61 74 20 74 68 69 73 20 69 73 |how that this is| 000019d0 20 73 6f 20 62 79 20 74 79 70 69 6e 67 3a 0d 0d | so by typing:..| 000019e0 2a 4c 4f 41 44 20 53 63 72 65 65 6e 20 33 30 30 |*LOAD Screen 300| 000019f0 30 0d 0d 59 6f 75 72 20 74 65 78 74 20 73 68 6f |0..Your text sho| 00001a00 75 6c 64 20 6e 6f 77 20 72 65 61 70 70 65 61 72 |uld now reappear| 00001a10 20 6f 6e 20 74 68 65 20 73 63 72 65 65 6e 2e 20 | on the screen. | 00001a20 59 6f 75 20 63 61 6e 20 72 65 70 65 61 74 20 74 |You can repeat t| 00001a30 68 69 73 20 77 69 74 68 20 61 6e 79 0d 6b 69 6e |his with any.kin| 00001a40 64 20 6f 66 20 63 6f 6d 70 6c 65 78 20 67 72 61 |d of complex gra| 00001a50 70 68 69 63 73 20 6f 6e 20 73 63 72 65 65 6e 2c |phics on screen,| 00001a60 20 61 6e 64 20 69 74 20 77 69 6c 6c 20 73 74 69 | and it will sti| 00001a70 6c 6c 20 77 6f 72 6b 2e 20 54 68 65 20 73 61 6d |ll work. The sam| 00001a80 65 20 63 61 6e 0d 62 65 20 64 6f 6e 65 20 69 6e |e can.be done in| 00001a90 20 61 6e 79 20 6f 74 68 65 72 20 67 72 61 70 68 | any other graph| 00001aa0 69 63 73 20 6d 6f 64 65 2c 20 73 69 6d 70 6c 79 |ics mode, simply| 00001ab0 20 62 79 20 63 68 61 6e 67 69 6e 67 20 74 68 65 | by changing the| 00001ac0 20 76 61 6c 75 65 73 20 6f 66 20 6e 6e 6e 6e 0d | values of nnnn.| 00001ad0 61 6e 64 20 6d 6d 6d 6d 20 74 6f 20 74 68 6f 73 |and mmmm to thos| 00001ae0 65 20 67 69 76 65 6e 20 69 6e 20 74 68 65 20 74 |e given in the t| 00001af0 61 62 6c 65 20 61 62 6f 76 65 2e 20 46 6f 72 20 |able above. For | 00001b00 65 78 61 6d 70 6c 65 20 69 6e 20 6d 6f 64 65 20 |example in mode | 00001b10 35 20 79 6f 75 0d 77 6f 75 6c 64 20 75 73 65 3a |5 you.would use:| 00001b20 0d 0d 2a 53 41 56 45 20 53 63 72 65 65 6e 20 35 |..*SAVE Screen 5| 00001b30 38 30 30 20 37 46 46 46 0d 0d 66 6f 6c 6c 6f 77 |800 7FFF..follow| 00001b40 65 64 20 62 79 3a 0d 0d 2a 4c 4f 41 44 20 53 63 |ed by:..*LOAD Sc| 00001b50 72 65 65 6e 20 35 38 30 30 20 37 46 46 46 0d |reen 5800 7FFF.| 00001b5f